Sha256: 110e0afceae201cb1b9ebab6b11d2b3fb49c91753d59eaf110e949a31ea6a432
Contents?: true
Size: 910 Bytes
Versions: 1
Compression:
Stored size: 910 Bytes
Contents
# Remove this file when refactoring is done def assert(obj) expect(obj).to be_truthy end def assert_equal(value, obj) expect(obj).to eq(value) end def assert_not_equal(value, obj) expect(obj).to_not eq(value) end def assert_not_nil(obj) expect(obj).to_not be_nil end def assert_nil(obj) expect(obj).to be_nil end def assert_raise(exception, &block) expect(block).to raise_error(exception) end def assert_nothing_thrown(&block) expect(block).to_not raise_error end def assert_nothing_raised(&block) expect(block).to_not raise_error end def assert_same(value, obj) expect(obj).to equal(value) end def assert_not_same(value, obj) expect(obj).to_not equal(value) end def assert_instance_of(klass, obj) expect(obj).to be_a klass end def assert_throws(symbol, &block) expect(block).to throw_symbol(symbol) end def assert_match(value, obj) expect(obj).to match(value) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
state_machines-0.0.2 | spec/support/migration_helpers.rb |