-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added per call option fixtures, completing the version 🚀
- Loading branch information
Showing
4 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...qus-app/source/per-call-options2.html.erb → ...qus-app/source/per_call_options2.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
disqus_identifier: /2012/the-best-day-of-my-life.html | ||
disqus_url: http://example.com/2012/better-day-of-my-life.html | ||
disqus_url: http://example.com/2015/better-day-of-my-life.html | ||
--- | ||
<%= disqus disqus_url: 'http://example.com/2012/the-best-day-of-my-life.html' %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
require 'spec_helper' | ||
|
||
describe 'per_call_options1', :type => :feature do | ||
before do | ||
visit '/per_call_options1.html' | ||
end | ||
|
||
it 'has the disqus thread element' do | ||
expect(page).to have_selector '#disqus_thread' | ||
end | ||
|
||
it 'has the disqus JS element set up' do | ||
expect(page.html).to include 'disqus.com/embed.js' | ||
expect(page.html).to include "var disqus_shortname = 'test-name'" | ||
expect(page.html).to include "var disqus_url = 'http://example.com/2012/the-best-day-of-my-life.html'" | ||
expect(page.html).to_not include 'var disqus_identifier' | ||
expect(page.html).to_not include 'var disqus_title' | ||
expect(page.html).to_not include 'var disqus_category_id' | ||
expect(page.html).to_not include 'var disqus_disable_mobile' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
require 'spec_helper' | ||
|
||
describe 'per_call_options2', :type => :feature do | ||
before do | ||
visit '/per_call_options2.html' | ||
end | ||
|
||
it 'has the disqus thread element' do | ||
expect(page).to have_selector '#disqus_thread' | ||
end | ||
|
||
it 'has the disqus JS element set up' do | ||
expect(page.html).to include 'disqus.com/embed.js' | ||
expect(page.html).to include "var disqus_shortname = 'test-name'" | ||
expect(page.html).to include "var disqus_identifier = '/2012/the-best-day-of-my-life.html'" | ||
expect(page.html).to include "var disqus_url = 'http://example.com/2012/the-best-day-of-my-life.html'" | ||
expect(page.html).to_not include "var disqus_url = 'http://example.com/2015/the-best-day-of-my-life.html'" | ||
expect(page.html).to_not include 'var disqus_title' | ||
expect(page.html).to_not include 'var disqus_category_id' | ||
expect(page.html).to_not include 'var disqus_disable_mobile' | ||
end | ||
end |