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
reset=$(tput sgr0) | |
black=$(tput setaf 0) | |
red=$(tput setaf 1) | |
green=$(tput setaf 2) | |
yellow=$(tput setaf 3) | |
blue=$(tput setaf 4) | |
violet=$(tput setaf 5) | |
cyan=$(tput setaf 6) | |
white=$(tput setaf 7) |
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
require 'firewatir' | |
require 'database_cleaner' | |
DatabaseCleaner.strategy = :truncation | |
Watir::Browser.default = "firefox" | |
Before do | |
# truncate your tables here, since you can't use transactional fixtures* | |
DatabaseCleaner.clean | |
@browser ||= Watir::Browser.new |
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
### link object | |
(rdb:1) @browser.link(:text, text).inspect | |
"#<Watir::Container::Link:0x37ce1f8 @what=\"Delete\", @scripter=#<Watir::AppleScripter:0x38521ec | |
@document=app(\"/Applications/Safari.app\").documents[1], @typing_lag=0.08, @js=#<Watir::JavaScripter:0x38521c4>, @element=nil, @app=app(\"/Applications/Safari.app\")>, @how=:text>" | |
### methods | |
(rdb:1) @browser.link(:text, text).methods | |
["contains_text", "text_field", "speak", "label", "remove_subclasses_of", "extend_with_included_modules_from", "methods", "send", "tag", "span", "should", "silence_warnings", |
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
(rdb:1) @browser.methods | |
["contains_text", "text_field", "label", "remove_subclasses_of", "extend_with_included_modules_from", | |
"methods", "send", "span", "should", "silence_warnings", "quit", "taint", "instance_variable_defined?", | |
"require_or_load", "require", "pretty_print_instance_variables", "b64encode", "singleton_methods", | |
"instance_eval", "cucumber_instance_exec", "pretty_print", "image", "nil?", | |
"cucumber_run_with_backtrace_filtering", "enable_warnings", "to_yaml", "subclasses_of", "instance_values", | |
"protected_methods", "instance_exec", "display", "to_param", "tainted?", "method", "speed=", "untaint", | |
"instance_of?", "frame", "to_json", "link", "taguri", "equal?", "require_association", "checkbox", | |
"silence_stderr", "instance_variable_names", "taguri=", "hash", "html", "private_methods", "to_query", | |
"present?", "`", "should_not", "encode64", "kind_of?", "cucumber_compatible_arity?", "freeze", |
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
diff --git a/firewatir/lib/firewatir/firefox.rb b/firewatir/lib/firewatir/firefox.rb | |
index 68e240c..89d1ccf 100644 | |
--- a/firewatir/lib/firewatir/firefox.rb | |
+++ b/firewatir/lib/firewatir/firefox.rb | |
@@ -129,10 +129,10 @@ module FireWatir | |
if current_os == :macosx && !%x{ps x | grep firefox-bin | grep -v grep}.empty? | |
raise "Firefox is running without -jssh" if jssh_down | |
- options[:launch_new_window] = true | |
+ launch_override = true |
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
Then /^I should see my billing address$/ do | |
response.body.should have_tag('#billing_address') | |
Then "I should see <fields>" | |
| fields | | |
| line_1 | | |
#........ | |
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
ignoring attempt to close link with head | |
opened at byte 162, line 7 | |
closed at byte 1220, line 24 | |
attributes at open: {"href"=>"/stylesheets/print.css?1237826131", "rel"=>"stylesheet", "type"=>"text/css", "media"=>"print"} | |
text around open: "ype=\"text/css\">\n <link href=\"/stylesh" | |
text around close: "]]>\n </script>\n </head><body class=\"" |
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
> _xmpp-server._tcp.setfiremedia.com | |
Server: 192.168.3.10 | |
Address: 192.168.3.10#53 | |
Non-authoritative answer: | |
_xmpp-server._tcp.setfiremedia.com service = 20 0 5269 xmpp-server4.l.google.com. | |
_xmpp-server._tcp.setfiremedia.com service = 5 0 5269 xmpp-server.l.google.com. | |
_xmpp-server._tcp.setfiremedia.com service = 20 0 5269 xmpp-server1.l.google.com. | |
_xmpp-server._tcp.setfiremedia.com service = 20 0 5269 xmpp-server2.l.google.com. | |
_xmpp-server._tcp.setfiremedia.com service = 20 0 5269 xmpp-server3.l.google.com. |
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
--- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | |
+++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | |
@@ -187,7 +187,7 @@ module ActiveRecord | |
# Drops a table from the database. | |
def drop_table(table_name, options = {}) | |
- execute "DROP TABLE #{quote_table_name(table_name)}" | |
+ execute "DROP#{' TEMPORARY' if options[:temporary]} TABLE #{quote_table_name(table_name)}" | |
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
class Foo | |
class << self | |
private | |
def bar | |
end | |
end | |
end | |
class Foo |
OlderNewer