Sha256: e79fcf2a6ee42537529ff9af1db20a99cf9037531e9d695e03a29193b98ea2d6

Contents?: true

Size: 666 Bytes

Versions: 21

Compression:

Stored size: 666 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper'

describe Pickle do
  it ".config should be same object on multiple calls" do
    Pickle.config.should == Pickle.config
  end
  
  it ".configure should configure the .config object" do
    Pickle.config.should_receive(:foo).with(:bar)
    Pickle.configure do |c|
      c.foo :bar
    end
  end

  it ".parser should create a parser with the default config" do
    Pickle.instance_variable_set('@parser', nil)
    Pickle::Parser.should_receive(:new).with(:config => Pickle.config)
    Pickle.parser
  end
  
  it ".parser should be same object on multiple calls" do
    Pickle.parser.should == Pickle.parser
  end
end

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
pickle-0.4.4 spec/pickle_spec.rb
judit-pickle-0.4.2 spec/pickle_spec.rb
pickle-0.4.3 spec/pickle_spec.rb
pickle-has_many_support-0.4.2 spec/pickle_spec.rb
pickle-0.4.2 spec/pickle_spec.rb
pickle-0.4.1 spec/pickle_spec.rb
pickle-0.4.0 spec/pickle_spec.rb
pickle-0.3.5 spec/pickle_spec.rb
pickle-0.3.4 spec/pickle_spec.rb
pickle-0.3.3 spec/pickle_spec.rb
pickle-0.3.2 spec/pickle_spec.rb
pickle-0.3.1 spec/pickle_spec.rb
pickle-has_many_support-0.3.1 spec/pickle_spec.rb
pickle-0.3.0 spec/pickle_spec.rb
pickle-0.2.12 spec/pickle_spec.rb
pickle-0.2.11 spec/pickle_spec.rb
pickle-0.2.10 spec/pickle_spec.rb
pickle-0.2.9 spec/pickle_spec.rb
pickle-0.2.8 spec/pickle_spec.rb
pickle-0.2.7 spec/pickle_spec.rb