Giter Club home page Giter Club logo

coulda's Introduction

coulda's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

coulda's Issues

Getting an odd error when using this code

Scenario "Query with no query args returns all locations" do
  given_a_person
  given_im_logged_in_as :person
  And "A job with a maximum of zero agents"
end
  1. Error:
    test_query_with_no_query_args_returns_all_locations(Geographic_queries):
    ArgumentError: wrong number of arguments (2 for 1)

Removing the pending "And" causes it to run without error.

0.7.1 Has broken all of my tests

Hi there,

It seems 0.7.1 is not backwards compatible with the last version of coulda, as once I upgraded it could no longer find any of the methods I was calling from inside any Given, When, And, and Then block.

Is there a new way if defining methods that can be shared within a Feature?

Thank you.

Allow for steps to accept a symbol

We discussed this at DCamp: essentially, allow for something like:

Given :logged_in_as_admin
...

To work, and the symbol would fire a method of the same name. This would also be a no brainer for the pretty test runner output, "Given logged in as admin".

Reuse through instance methods in a Feature currently fails

The below example results in a NameError:
require 'rubygems'
require 'coulda'
include Coulda

Feature "Painfully obvious" do
  in_order_to "demonstrate a simple test"
  as_a "coulda developer"
  i_want_to "provide a straight-forward scenario"

  def given_something_without_a_value
    Given "something without a value" do
      @no_value = nil
    end
  end

  Scenario "Describing something obvious" do
    given_something_without_a_value

    When "I give it a value" do
      @no_value = true
    end

    Then "it should have a value" do
      assert(@no_value)
    end
  end
end

There isn't any tutorial or guide

I'm a newbie of BDD and it would be great to read a tutorial on how to use it. Even a very simple program would be ok.

Looking at the example, I don't know how to verify the expectations...

Macros are not visible during semantic validation

The below currently fails.

Feature "feature name" do
  in_order_to "foo"
  as_a "bar"
  i_want_to "blech"

  def given_a_macro
    Given "a method that calls Given" do; end
  end

  Scenario "that is live" do
    given_a_macro
    When "bar" do; end
    Then "blech" do; end
  end
end

rspec integration test with coulda

Is it possible to use coulda + webrat +rspec2 with rails3..

Since there is a long way for cucumber to support rails3 yet, coulda as being cucumber-lite will be perfect for our internal projects

Scenario Outlines to avoid having to cut and paste

I really like the simplicity of what you have going here. And I'm about ready to choose coulda over cucumber.

That said, tt was mentioned somewhere that you were not going to implement fit tables as they could be supported in given clauses. That may be true, but what about using tables for scenario outlines. These handy little guys could save a ton of cut and pasting. Or am I missing a better way to do something?

See related link.
http://wiki.github.com/aslakhellesoy/cucumber/scenario-outlines

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.