Sha256: 143e5ea50d5484ffaf52d21c463abf2a909713d60e2cc0f9ccd381996b1d44ac

Contents?: true

Size: 302 Bytes

Versions: 3

Compression:

Stored size: 302 Bytes

Contents

shared_examples_for "a zelda base model" do
  it "should respond to the attributes set in the constructor" do
    @model.foo.should == 'bar'
  end
  
  it "should not respond to attributes not set in the constructor" do
    lambda { @model.no_not_here_nope }.should raise_error(NoMethodError)
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
bartzon-zelda-0.0.5 spec/support/shared_examples.rb
zelda-1.0.0 spec/support/shared_examples.rb
zelda-0.1.0 spec/support/shared_examples.rb