Sha256: 416f6b54147dc217d6576a5ad74662e3c4530f6c1ef5ddc6f61a7fbad1b924e0
Contents?: true
Size: 536 Bytes
Versions: 4
Compression:
Stored size: 536 Bytes
Contents
require File.dirname(__FILE__) + '/../lib/spec' class Airport def working? true end def need?(thing) false unless [:cables, :electricity].include? thing end end context "Airport at home" do setup do @airport = Airport.new end specify "should always work" do @airport.should_be_working end specify "not need cables" do @airport.should_not_need :cables end specify "not need electricity" do @airport.should_not_need :electricity end teardown do @airport = nil end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rspec-0.5.15 | examples/airport_spec.rb |
rspec-0.5.14 | examples/airport_spec.rb |
rspec-0.5.16 | examples/airport_spec.rb |
rspec-0.6.0 | examples/airport_spec.rb |