fix failing specs

This commit is contained in:
Reinier Balt 2011-08-16 11:49:04 +02:00
parent a8f4199adc
commit c6c51ee83c
6 changed files with 28 additions and 98 deletions

View file

@ -1,10 +1,10 @@
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe Context do
def valid_attributes
{:name => 'Errands'}
end
before(:each) do
@context = Context.new
end
@ -30,11 +30,6 @@ describe Context do
Context.new(:hide => true).should be_hidden
end
it 'produces correct summary depending on visibility' do
Context.new(:hide => true).summary(3).should == '<p>3. Context is Hidden.</p>'
Context.new(:hide => false).summary(3).should == '<p>3. Context is Active.</p>'
end
it 'returns name as title' do
Context.new(:name => 'foo').title.should == 'foo'
end