Sha256: 93eb0b55d029a8d56c1260f5feb75d1bca06e556d02ba35f240c81856e954d86

Contents?: true

Size: 636 Bytes

Versions: 8

Compression:

Stored size: 636 Bytes

Contents

Given /^I have (\w+)$/ do |name|
  build name
end
Then /^(\w+) should (NOT )?be available$/ do |name, negative|
  instance_variable_get("@#{name}").send(negative.present? ? :should : :should_not, be_nil)
end
Then /^(\w+) should be a (\w+)$/ do |name, type|
  instance_variable_get("@#{name}").should be_instance_of(type.classify.constantize)
end
Then /^(\w+) species should be "([^\"]*)"$/ do |name, species|
  instance_variable_get("@#{name}").species.should == species
end
When /^big_cherry size is 10$/ do
  @big_cherry.average_diameter.should == 7
end
Then /^I set big_cherry size to 15$/ do
  @big_cherry.average_diameter = 15
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
blueprints-1.0.1 features/step_definitions/blueprints_steps.rb
blueprints-1.0.0 features/step_definitions/blueprints_steps.rb
blueprints-0.9.0 features/step_definitions/blueprints_steps.rb
blueprints-0.8.2 features/step_definitions/blueprints_steps.rb
blueprints-0.8.1 features/step_definitions/blueprints_steps.rb
blueprints-0.8.0 features/step_definitions/blueprints_steps.rb
blueprints-0.7.3 features/step_definitions/blueprints_steps.rb
blueprints-0.7.2 features/step_definitions/blueprints_steps.rb