Sha256: 325c63c42e37f3f8dc5e7ce6226f0b7621fd31cfcd9abc3c9469871b85e307d8

Contents?: true

Size: 397 Bytes

Versions: 6

Compression:

Stored size: 397 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper"))

given "we set an ivar" do
  @foo = 7
end

describe "a spec that reuses a given block", :given => "we set an ivar" do
  it "sees the results of the given block" do
    @foo.should == 7
  end
end

describe "a spec that does not reuse a given block" do
  it "does not see the given block" do
    @foo.should == nil
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
merb-core-1.1.3 spec10/public/test/rspec_ext_spec.rb
merb-core-1.1.2 spec10/public/test/rspec_ext_spec.rb
merb-core-1.1.1 spec10/public/test/rspec_ext_spec.rb
merb-core-1.1.0 spec10/public/test/rspec_ext_spec.rb
merb-core-1.1.0.rc1 spec10/public/test/rspec_ext_spec.rb
merb-core-1.1.0.pre spec10/public/test/rspec_ext_spec.rb