Sha256: 25a39395e4fb66b0d5f338df829f6ff27d22fde724122591941147aa3d23c3ae
Contents?: true
Size: 806 Bytes
Versions: 4
Compression:
Stored size: 806 Bytes
Contents
require File.dirname(__FILE__) + '/spec' class ExtensionSpec < Spec context 'Remix#stash' do should 'return a stash object with the correct name' do s = Remix.stash(:a) assert_instance_of Stash, s assert_equal :a, s.name end should 'return the same object when given the same name' do assert_equal Remix.stash(:b), Remix.stash(:b) assert_not_equal Remix.stash(:a), Remix.stash(:b) end should 'allow access to a default root stash' do assert_equal Remix.stash, Remix.stash(:root) assert_equal :root, Remix.stash.name end end context 'modules' do should 'be mixed into Object' do assert Object.respond_to?(:stash) end should 'be mixed into Remix' do assert Remix.respond_to?(:stash) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
remix-stash-1.1.3 | spec/extension_spec.rb |
remix-stash-1.1.2 | spec/extension_spec.rb |
remix-stash-1.1.1 | spec/extension_spec.rb |
remix-stash-1.1.0 | spec/extension_spec.rb |