File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1123,12 +1123,12 @@ they will retry the match for given timeout allowing you to test ajax actions.
1123
1123
= "Published at: #{ formatted_date(@article .published_at) } "
1124
1124
1125
1125
# spec/views/articles/show.html.haml_spec.rb
1126
- describe 'articles/show.html.html ' do
1126
+ describe 'articles/show.html.haml ' do
1127
1127
it 'displays the formatted date of article publishing'
1128
1128
article = mock_model(Article, published_at: Date.new(2012, 01, 01))
1129
1129
assign(:article, article)
1130
1130
1131
- template.stub(:formatted_date).with(article.published_at).and_return '01.01.2012'
1131
+ template.stub(:formatted_date).with(article.published_at).and_return( '01.01.2012')
1132
1132
1133
1133
render
1134
1134
rendered.should have_content('Published at: 01.01.2012')
You can’t perform that action at this time.
0 commit comments