Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tweak of slides and change of example (safer site with no popups!)

  • Loading branch information...
commit e7907c2072c83edd14c20adec39763ba40c3a8b5 1 parent 58c9b70
Stephen Hardisty authored
View
38 Gemfile.lock
@@ -1,7 +1,8 @@
GEM
remote: http://rubygems.org/
specs:
- bbc-capybara-mechanize (0.3.5)
+ addressable (2.2.7)
+ bbc-capybara-mechanize (0.4.1)
capybara (~> 1.1.2)
mechanize (~> 1.0.0)
capybara (1.1.2)
@@ -15,28 +16,31 @@ GEM
ffi (~> 1.0.6)
diff-lcs (1.1.3)
ffi (1.0.9)
- json_pure (1.6.5)
+ json_pure (1.6.6)
+ libwebsocket (0.1.3)
+ addressable
mechanize (1.0.0)
nokogiri (>= 1.2.1)
- mime-types (1.17.2)
- multi_json (1.0.4)
- nokogiri (1.5.0)
+ mime-types (1.18)
+ multi_json (1.2.0)
+ nokogiri (1.5.2)
rack (1.4.1)
rack-test (0.6.1)
rack (>= 1.0)
- rspec (2.8.0)
- rspec-core (~> 2.8.0)
- rspec-expectations (~> 2.8.0)
- rspec-mocks (~> 2.8.0)
- rspec-core (2.8.0)
- rspec-expectations (2.8.0)
- diff-lcs (~> 1.1.2)
- rspec-mocks (2.8.0)
- rubyzip (0.9.6.1)
- selenium-webdriver (2.19.0)
+ rspec (2.9.0)
+ rspec-core (~> 2.9.0)
+ rspec-expectations (~> 2.9.0)
+ rspec-mocks (~> 2.9.0)
+ rspec-core (2.9.0)
+ rspec-expectations (2.9.1)
+ diff-lcs (~> 1.1.3)
+ rspec-mocks (2.9.0)
+ rubyzip (0.9.7)
+ selenium-webdriver (2.21.0)
childprocess (>= 0.2.5)
- ffi (~> 1.0.9)
- multi_json (~> 1.0.4)
+ ffi (~> 1.0)
+ libwebsocket (~> 0.1.3)
+ multi_json (~> 1.0)
rubyzip
xpath (0.1.4)
nokogiri (~> 1.3)
View
BIN  presentation.key
Binary file not shown
View
BIN  selenium.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
21 spec/example_spec.rb
@@ -1,15 +1,18 @@
-#describe "John's movie reviews'", :mechanize => true do
-describe "John's movie reviews'" do
+#describe 'Dcyder', :mechanize => true do
+describe 'Dcyder' do
before do
- visit 'http://www.angelfire.com/movies/johnswebpage/'
+ visit 'http://www.dcyder.com'
end
- it 'should have a heading' do
- find('h1').should have_content("John's Movie Reviews Page")
+ it 'should have a header' do
+ find('#header').has_content?('Welcome to Dcyder!').should == true
end
- it 'should have reactions to the 2002 oscars' do
- click_link 'Reactions to the 2002 oscars.'
- page.has_content?('Out of the five, I liked Lord of the Rings the most').should == true
+ # ... This is actually a bad test! It could fail incorrectly :S
+ it 'should some content relating to boyfriends' do
+ within '#popTags' do
+ click_link 'boyfriend'
+ end
+ find('#viewAll').has_content?('boyfriend').should == true
end
-end
+end
View
4 spec/find_listing_spec.rb
@@ -5,9 +5,9 @@
# find('.css #string').should have_content('abc')
# page.should have_content('abc')
-describe 'Navigating' do
+describe 'Searching' do
before do
- visit '/' # This is relative to Capybara.app_host (set in spec_helper.rb as "http://www.etsy.com")
+ visit 'some url!'
end
it 'should blah blah blah' do
Please sign in to comment.
Something went wrong with that request. Please try again.