Sha256: b9d20c98e41ce450c9a38e549b77f4fa2c09f19ad1da80eb62ef9234919ebc05
Contents?: true
Size: 457 Bytes
Versions: 4
Compression:
Stored size: 457 Bytes
Contents
require 'spec_helper' module Alf class Database describe Connection, "migrate" do let(:conn){ Connection.new(self){|opts| @original_opts = opts; self } } subject{ conn.migrate! } def migrate!(opts) @seen_opts = opts end before do @seen_opts = nil end it 'should delegate the call' do subject @seen_opts.should be(@original_opts) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems