github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

drogus / culerity-javascript-example

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 6
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Culerity unobtrusive javascript example — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Mongrel is started before tests and stopped at exit 
drogus (author)
Mon Jul 20 05:16:09 -0700 2009
commit  85b4dfda5d76f1aee28d632eef1ff57047515ebd
tree    c638da5d4983d13fa6f4aa0320bbc45060378ae7
parent  ce020082c8dbde0774b736a5a407167f6f230ba7
culerity-javascript-example / features / support / hooks.rb features/support/hooks.rb
100644 20 lines (16 sloc) 0.428 kb
edit raw blame history
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'culerity'
`mongrel_rails start -e cucumber -p 3001 -d`
 
Before do
  $server ||= Culerity::run_server
  $browser = Culerity::RemoteBrowserProxy.new $server, {:browser => :firefox}
  $browser.webclient.setJavaScriptEnabled(false)
  @host = 'http://localhost:3001'
end
 
Before("@js") do |scenario|
  $browser.webclient.setJavaScriptEnabled(true)
end
 
at_exit do
  $browser.exit
  $server.close
  `mongrel_rails stop`
end
 
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server