spec/tophat_spec.rb in tophat-1.3.1 vs spec/tophat_spec.rb in tophat-1.4.0
- old
+ new
@@ -68,6 +68,18 @@
it "should respond to the 'canonical' helper" do
@template.respond_to?(:canonical).should be_true
end
end
+ describe '.current' do
+ it 'returns a hash' do
+ TopHat.current.should be_kind_of(Hash)
+ end
+
+ it 'allows the hash to be modified' do
+ TopHat.current[:title] = 'foo'
+
+ TopHat.current[:title].should eq('foo')
+ end
+ end
+
end