Sha256: d63cc86ae30554929dc3b43a572dcf5886cd9f30a2c9bf4957b7cbbf709d8bfb

Contents?: true

Size: 320 Bytes

Versions: 8

Compression:

Stored size: 320 Bytes

Contents

steps_for :<%= gem_name %> do
  Given 'there are $n <%= gem_name %>' do |n|
    <%= module_name %>.initial = n.to_i
  end

  When 'I sell $n <%= gem_name %>' do |n|
    <%= module_name %>.sold = n.to_i
  end

  Then 'there should be $n <%= gem_name %> left' do |n|
    <%= module_name %>.left.should == n.to_i
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
newgem-0.25.0 rubygems_generators/install_rspec_stories/templates/steps.rb
newgem-0.22.2 rubygems_generators/install_rspec_stories/templates/steps.rb
newgem-0.23.0 rubygems_generators/install_rspec_stories/templates/steps.rb
newgem-0.23.1 rubygems_generators/install_rspec_stories/templates/steps.rb
newgem-0.24.0 rubygems_generators/install_rspec_stories/templates/steps.rb
newgem-0.28.0 rubygems_generators/install_rspec_stories/templates/steps.rb
newgem-0.27.0 rubygems_generators/install_rspec_stories/templates/steps.rb
newgem-0.29.0 rubygems_generators/install_rspec_stories/templates/steps.rb