adjust tests to fixtures
This commit is contained in:
parent
ea8b8c6548
commit
a2c7e73df4
2
test/fixtures/journals.yml
vendored
2
test/fixtures/journals.yml
vendored
@ -30,7 +30,7 @@ journals_003:
|
|||||||
id: 3
|
id: 3
|
||||||
type: "IssueJournal"
|
type: "IssueJournal"
|
||||||
activity_type: "issues"
|
activity_type: "issues"
|
||||||
created_at: <%= 1.days.ago.to_date.to_s(:db) %>
|
created_at: <%= 2.days.ago.to_date.to_s(:db) %>
|
||||||
version: 1
|
version: 1
|
||||||
user_id: 2
|
user_id: 2
|
||||||
notes: "A comment with inline image: !picture.jpg!"
|
notes: "A comment with inline image: !picture.jpg!"
|
||||||
|
@ -10,10 +10,10 @@ class ActivitiesControllerTest < ActionController::TestCase
|
|||||||
assert_not_nil assigns(:events_by_day)
|
assert_not_nil assigns(:events_by_day)
|
||||||
|
|
||||||
assert_tag :tag => "h3",
|
assert_tag :tag => "h3",
|
||||||
:content => /#{2.days.ago.to_date.day}/,
|
:content => /#{1.day.ago.to_date.day}/,
|
||||||
:sibling => { :tag => "dl",
|
:sibling => { :tag => "dl",
|
||||||
:child => { :tag => "dt",
|
:child => { :tag => "dt",
|
||||||
:attributes => { :class => /issue-edit/ },
|
:attributes => { :class => /issue/ },
|
||||||
:child => { :tag => "a",
|
:child => { :tag => "a",
|
||||||
:content => /(#{IssueStatus.find(2).name})/,
|
:content => /(#{IssueStatus.find(2).name})/,
|
||||||
}
|
}
|
||||||
@ -46,12 +46,12 @@ class ActivitiesControllerTest < ActionController::TestCase
|
|||||||
assert_not_nil assigns(:events_by_day)
|
assert_not_nil assigns(:events_by_day)
|
||||||
|
|
||||||
assert_tag :tag => "h3",
|
assert_tag :tag => "h3",
|
||||||
:content => /#{5.day.ago.to_date.day}/,
|
:content => /#{3.day.ago.to_date.day}/,
|
||||||
:sibling => { :tag => "dl",
|
:sibling => { :tag => "dl",
|
||||||
:child => { :tag => "dt",
|
:child => { :tag => "dt",
|
||||||
:attributes => { :class => /issue/ },
|
:attributes => { :class => /issue/ },
|
||||||
:child => { :tag => "a",
|
:child => { :tag => "a",
|
||||||
:content => /#{Issue.find(5).subject}/,
|
:content => /#{Issue.find(1).subject}/,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user