Sha256: 63e2e79389657574e27e4281570dfde21631ad7d9e862b9c02002692da2afb66

Contents?: true

Size: 799 Bytes

Versions: 14

Compression:

Stored size: 799 Bytes

Contents

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

module Wally
  describe Feature do
    it "stores a feature path" do
      project = project("project")
      project.features << Feature.new(:path => "hello.feature")
      project.save
      Project.first.features.first.path.should == "hello.feature"
    end

    it "stores the feature content" do
      project = project("project")
      project.features << Feature.new(:gherkin => {"meh" => "ble"})
      project.save
      Project.first.features.first.gherkin.should == {"meh" => "ble"}
    end

    it "stores the feature name" do
      project = project("project")
      project.features << Feature.new(:gherkin => {"name" => "ble"})
      project.save
      Project.first.features.first.name.should == "ble"
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
wally-0.0.47 spec/wally/feature_spec.rb
wally-0.0.46 spec/wally/feature_spec.rb
wally-0.0.45 spec/wally/feature_spec.rb
wally-0.0.44 spec/wally/feature_spec.rb
wally-0.0.43 spec/wally/feature_spec.rb
wally-0.0.42 spec/wally/feature_spec.rb
wally-0.0.41 spec/wally/feature_spec.rb
wally-0.0.40 spec/wally/feature_spec.rb
wally-0.0.39 spec/wally/feature_spec.rb
wally-0.0.38 spec/wally/feature_spec.rb
wally-0.0.37 spec/wally/feature_spec.rb
wally-0.0.36 spec/wally/feature_spec.rb
wally-0.0.35 spec/wally/feature_spec.rb
wally-0.0.34 spec/wally/feature_spec.rb