Re: [rspec-users] [Cucumber 0.2] Failure to use should

2009-04-30 Thread José Valim
Just for reference, whoever have problem with rspec, remarkable and cucumber, try this installation settings: # config/environments/test.rb config.gem "rspec", :lib => false config.gem "rspec-rails", :lib => false config.gem "remarkable_rails", :lib => false # spec/spec_helper.rb require "spec/r

Re: [rspec-users] [Cucumber 0.2] Failure to use should

2009-03-25 Thread Yi
Just did a little bit exploration. Found out http://github.com/carlosbrando/remarkable/tree/master plugin I use actually cause the problem. This plugin also broke spec:server:start rake task as well. :-( On Thu, Mar 19, 2009 at 5:03 PM, Yi wrote: > I thought be_something is actually handled by r

Re: [rspec-users] [Cucumber 0.2] Failure to use should

2009-03-19 Thread Yi
I thought be_something is actually handled by rspec class Be. be_blank essentially asks the object blank? predicate. Not that there is a "be_blank" method declared anywhere. Anyway, require 'spec/expectations' doesn't solve the problem. I will look into this. Thanks Yi On Thu, Mar 19, 2009 at 10

Re: [rspec-users] [Cucumber 0.2] Failure to use should

2009-03-19 Thread Pat Maddox
Right, you need to add require 'spec/expectations' because Cucumber doesn't know about RSpec's matchers by default. Pat 2009/3/19 Yi : > This is my env.rb > > # Sets up the Rails environment for Cucumber > ENV["RAILS_ENV"] ||= "test" > require File.expand_path(File.dirname(__FILE__) + > '/../../

Re: [rspec-users] [Cucumber 0.2] Failure to use should

2009-03-19 Thread Yi
This is my env.rb # Sets up the Rails environment for Cucumber ENV["RAILS_ENV"] ||= "test" require File.expand_path(File.dirname(__FILE__) + '/../../config/environment') require 'cucumber/rails/world' require 'cucumber/formatters/unicode' # Comment out this line if you don't want Cucumber Unicode

Re: [rspec-users] [Cucumber 0.2] Failure to use should

2009-03-19 Thread aslak hellesoy
2009/3/19 Yi > I have a step definition like this: > > Then "the account should be created" do > account = Account.find_by_name("my shiny new account") > p account.class > account.should_not be_blank > end > > When running this step, I got the error message: > > Account(id: integer, name: s

[rspec-users] [Cucumber 0.2] Failure to use should

2009-03-19 Thread Yi
I have a step definition like this: Then "the account should be created" do account = Account.find_by_name("my shiny new account") p account.class account.should_not be_blank end When running this step, I got the error message: Account(id: integer, name: string, state: string, next_renewal