this probably is it, if it's not then it's your problem, i didn't cause this
This commit is contained in:
parent
eee53e8f6e
commit
fa1ef1de21
|
@ -15,14 +15,14 @@ items_per_page: 10
|
||||||
# OAuth tokens
|
# OAuth tokens
|
||||||
sharing:
|
sharing:
|
||||||
twitter:
|
twitter:
|
||||||
enabled: true
|
enabled: false
|
||||||
# Get the tokens from https://apps.twitter.com
|
# Get the tokens from https://apps.twitter.com
|
||||||
consumer_key: ''
|
consumer_key: ''
|
||||||
consumer_secret: ''
|
consumer_secret: ''
|
||||||
facebook:
|
facebook:
|
||||||
enabled: false
|
enabled: false
|
||||||
tumblr:
|
tumblr:
|
||||||
enabled: true
|
enabled: false
|
||||||
# Get the tokens from https://www.tumblr.com/oauth/apps
|
# Get the tokens from https://www.tumblr.com/oauth/apps
|
||||||
consumer_key: ''
|
consumer_key: ''
|
||||||
consumer_secret: ''
|
consumer_secret: ''
|
||||||
|
|
|
@ -28,13 +28,14 @@ feature "Inbox", :devise do
|
||||||
page.driver.render Rails.root.join("tmp/answer_#{Time.now.to_i}_1.png"), full: true
|
page.driver.render Rails.root.join("tmp/answer_#{Time.now.to_i}_1.png"), full: true
|
||||||
|
|
||||||
click_link "Inbox"
|
click_link "Inbox"
|
||||||
expect(page).to have_text(question.content, wait: 2)
|
expect(page).to have_text(question.content)
|
||||||
|
expect(page).to have_field('ib-answer', wait: 2)
|
||||||
fill_in "ib-answer", with: "This is an answer. I'm number i!"
|
fill_in "ib-answer", with: "This is an answer. I'm number i!"
|
||||||
page.driver.render Rails.root.join("tmp/answer_#{Time.now.to_i}_2.png"), full: true
|
page.driver.render Rails.root.join("tmp/answer_#{Time.now.to_i}_2.png"), full: true
|
||||||
|
|
||||||
click_button "Answer"
|
click_button "Answer"
|
||||||
wait_for_ajax
|
wait_for_ajax
|
||||||
expect(page).to have_text("Successfully answered question.", wait: 2)
|
expect(page).not_to have_text(question.content, wait: 2)
|
||||||
page.driver.render Rails.root.join("tmp/answer_#{Time.now.to_i}_3.png"), full: true
|
page.driver.render Rails.root.join("tmp/answer_#{Time.now.to_i}_3.png"), full: true
|
||||||
|
|
||||||
visit show_user_profile_path(me.screen_name)
|
visit show_user_profile_path(me.screen_name)
|
||||||
|
|
Loading…
Reference in New Issue