Sha256: 2ba81a1631b88587263730cdecb80d43e76ffc9e7d0aa7cf09c92542a051fbba

Contents?: true

Size: 656 Bytes

Versions: 4

Compression:

Stored size: 656 Bytes

Contents

require File.join(File.dirname(__FILE__), "..", "spec_helper")

module Wally
  describe Feature do
    after do
      Feature.delete_all
    end

    subject { Feature.new }

    it "stores a feature path" do
      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

    it "stores the feature name" do
      subject.gherkin = {"name" => "ble"}
      subject.save
      Feature.all.first.name.should == "ble"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wally-0.0.33 spec/wally/feature_spec.rb
wally-0.0.32 spec/wally/feature_spec.rb
wally-0.0.31 spec/wally/feature_spec.rb
wally-0.0.30 spec/wally/feature_spec.rb