frameworks-capybara 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/version.rb +1 -1
- data/spec/mock.default/prefs.js +10 -0
- data/spec/unit_test_monkeypatches.rb +1 -17
- metadata +4 -3
data/Gemfile.lock
CHANGED
data/lib/version.rb
CHANGED
@@ -0,0 +1,10 @@
|
|
1
|
+
# Mozilla User Preferences
|
2
|
+
|
3
|
+
/* Do not edit this file.
|
4
|
+
*
|
5
|
+
* If you make changes to this file while the application is running,
|
6
|
+
* the changes will be overwritten when the application exits.
|
7
|
+
*
|
8
|
+
* To make a manual change to preferences, you can visit the URL about:config
|
9
|
+
* For more information, see http://www.mozilla.org/unix/customizing.html#prefs
|
10
|
+
*/
|
@@ -7,23 +7,7 @@ module Selenium
|
|
7
7
|
module_function
|
8
8
|
|
9
9
|
def app_data_path
|
10
|
-
|
11
|
-
testpath = File.dirname(__FILE__)
|
12
|
-
case Platform.os
|
13
|
-
when :windows
|
14
|
-
"#{ENV['APPDATA']}\\Mozilla\\Firefox"
|
15
|
-
when :macosx
|
16
|
-
#"#{Platform.home}/Library/Application Support/Firefox"
|
17
|
-
testpath
|
18
|
-
when :unix, :linux
|
19
|
-
"#{Platform.home}/.mozilla/firefox"
|
20
|
-
else
|
21
|
-
raise "Unknown os: #{Platform.os}"
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
def stringified?(str)
|
26
|
-
str =~ /^".*"$/
|
10
|
+
File.dirname(__FILE__)
|
27
11
|
end
|
28
12
|
|
29
13
|
end # Util
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frameworks-capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 2
|
10
|
+
version: 0.2.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- matt robbins
|
@@ -165,6 +165,7 @@ files:
|
|
165
165
|
- schemas/xml.xsd
|
166
166
|
- spec/frameworks_capybara_spec.rb
|
167
167
|
- spec/frameworks_cucumber_spec.rb
|
168
|
+
- spec/mock.default/prefs.js
|
168
169
|
- spec/profiles.ini
|
169
170
|
- spec/spec_helper.rb
|
170
171
|
- spec/unit_test_monkeypatches.rb
|