spec/unit/atomic_switcher_spec.rb in lhm-2.1.0 vs spec/unit/atomic_switcher_spec.rb in lhm-2.2.0

- old
+ new

@@ -10,22 +10,22 @@ describe Lhm::AtomicSwitcher do include UnitHelper before(:each) do @start = Time.now - @origin = Lhm::Table.new("origin") - @destination = Lhm::Table.new("destination") + @origin = Lhm::Table.new('origin') + @destination = Lhm::Table.new('destination') @migration = Lhm::Migration.new(@origin, @destination, @start) @switcher = Lhm::AtomicSwitcher.new(@migration, nil) end - describe "atomic switch" do - it "should perform a single atomic rename" do + describe 'atomic switch' do + it 'should perform a single atomic rename' do @switcher. statements. must_equal([ - "rename table `origin` to `#{ @migration.archive_name }`, " + - "`destination` to `origin`" + "rename table `origin` to `#{ @migration.archive_name }`, " \ + '`destination` to `origin`' ]) end end end