Sha256: 5c5a4413c084904ebaedf31324856872da806634673394cac757da1cfd707b67

Contents?: true

Size: 696 Bytes

Versions: 33

Compression:

Stored size: 696 Bytes

Contents

require File.expand_path(File.join(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

33 entries across 33 versions & 6 rubygems

Version Path
ianwhite-pickle-0.1.10 spec/lib/pickle_spec.rb
ianwhite-pickle-0.1.11 spec/lib/pickle_spec.rb
ianwhite-pickle-0.1.12 spec/lib/pickle_spec.rb
ianwhite-pickle-0.1.13 spec/lib/pickle_spec.rb
ianwhite-pickle-0.1.14 spec/lib/pickle_spec.rb
ianwhite-pickle-0.1.15 spec/lib/pickle_spec.rb
ianwhite-pickle-0.1.5 spec/lib/pickle_spec.rb
ianwhite-pickle-0.1.6 spec/lib/pickle_spec.rb
ianwhite-pickle-0.1.8 spec/lib/pickle_spec.rb
ianwhite-pickle-0.1.9 spec/lib/pickle_spec.rb
mrflip-pickle-0.1.13 spec/lib/pickle_spec.rb
schlick-pickle-0.1.5.1 spec/lib/pickle_spec.rb
schlick-pickle-0.1.5.2 spec/lib/pickle_spec.rb
schlick-pickle-0.1.5.3 spec/lib/pickle_spec.rb
schlick-schlick-pickle-0.1.5.1 spec/lib/pickle_spec.rb
pickle-0.2.5 spec/lib/pickle_spec.rb
pickle-0.2.4 spec/lib/pickle_spec.rb
pickle-0.2.3 spec/lib/pickle_spec.rb
pickle-0.2.2 spec/lib/pickle_spec.rb
kbaum-pickle-0.2.1.4 spec/lib/pickle_spec.rb