Sha256: 90aea979428e5d0d217cac1bd6a999125463c52cac0715d989be3b4f8cab5116
Contents?: true
Size: 640 Bytes
Versions: 7
Compression:
Stored size: 640 Bytes
Contents
require '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
7 entries across 7 versions & 1 rubygems