search for: scenario_nam

Displaying 1 result from an estimated 1 matches for "scenario_nam".

Did you mean: scenario_name
2007 May 21
2
Rails'' fixtures suck! But what about something like this?
...--------------- require File.dirname(__FILE__) + ''/../spec_helper'' describe User, :when => :only_one_signed_up_user do it "should be the only user" do User.count.should == 1 end end ------------------------------- The key part here would be the :when => :scenario_name option to the describe method. + Writing the fixtures Writing fixtures with YAML is quite ugly. I think a better way to do it would be using a DSL, but coming up with a good syntax is hard. This is where I am the most hesitant. I have two "options" and I was wondering if people could c...