mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-24 08:04:08 +01:00
fix failing specs
This commit is contained in:
parent
a8f4199adc
commit
c6c51ee83c
6 changed files with 28 additions and 98 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue