spec/wally/feature_spec.rb in wally-0.0.28 vs spec/wally/feature_spec.rb in wally-0.0.29

- old
+ new

@@ -4,21 +4,20 @@ describe Feature do after do Feature.delete_all end - it "stores a feature" do - feature = Feature.new - feature.content = "Feature: Bla" - feature.save + subject { Feature.new } - Feature.all.first.content.should == "Feature: Bla" - end - it "stores a feature path" do - feature = Feature.new - feature.path = "hello.feature" - feature.save + subject.path = "hello.feature" + subject.save Feature.all.first.path.should == "hello.feature" + end + + it "stores the feature content" do + subject.gherkin = {"meh" => "ble"} + subject.save + Feature.all.first.gherkin.should == {"meh" => "ble"} end end end