Commit 4f1a13ab by tady

fix spec

parent 7b54d117
...@@ -20,7 +20,7 @@ describe 'Request via js', js: true do ...@@ -20,7 +20,7 @@ describe 'Request via js', js: true do
it 'show first post' do it 'show first post' do
page.save_screenshot(Rails.root.join('tmp', 'screenshots', "a-#{Time.now.strftime('%Y-%m-%d %H%M%S')}.png")) page.save_screenshot(Rails.root.join('tmp', 'screenshots', "a-#{Time.now.strftime('%Y-%m-%d %H%M%S')}.png"))
expect(page.find('.post-list:first-child h4').text).to include('java java') expect(page.find('.panel-main .list-group-item:first-child h4').text).to include('java java')
end end
after :each do after :each do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment