Sha256: dfa29d5f84e693540cb6122426a16672f451b25e4173f9b171ae69f0fc20f064

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

scenario(:just_apple) do
  @apple = Fruit.create! :species => 'apple'
end

scenario(:many_apples => [:just_apple, :just_apple, :just_apple]) do 
end

scenario(:bananas_and_apples => :just_apple) do
  @banana = Fruit.create! :species => 'banana'
end

scenario(:just_orange) do
  @orange = Fruit.create! :species => 'orange'
end

scenario(:fruit => [:just_apple,:just_orange]) do
  @fruit = [@orange,@apple]
end

scenario(:bananas_and_apples_and_oranges => [:bananas_and_apples,:just_orange]) do
  @fruit = [@orange,@apple,@banana]
end

scenario(:cherry) do
  @cherry = Fruit.create! :species => 'cherry', :average_diameter => 3
end

scenario(:big_cherry => :cherry) do
  @big_cherry = Fruit.create! :species => @cherry.species, :average_diameter => 7
end

scenario(:cherry_basket => [:big_cherry, :cherry]) do
  @basket = [@cherry, @big_cherry]
end

# Hornsby.namespace(:pitted_fruit) do
#   scenario(:peach) do
#     @peach = Fruit.create! :species => 'peach'
#   end
#
#   scenario(:nectarine) do
#     @nectarine = Fruit.create! :species => 'nectarine'
#   end
# end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sinsiliux-hornsby-0.2.1 spec/hornsby_scenario.rb