splinter 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7f9a91d2107588dae76e0904e8c5c27b5a4649e
4
- data.tar.gz: def9ed48cc1a20aa7bb5269793cb915dee364e68
3
+ metadata.gz: 4a52c49f01533aa71ae9e36110497563526bbd80
4
+ data.tar.gz: a767dc83dc2c300e7cb4ed7a15523a339dbcf2b2
5
5
  SHA512:
6
- metadata.gz: 7d24c3bc71bb5cde5028a084d3f50ffd5354d8bec53ec543e7875e46dc0e19d7c433a305668c7ae89d78c3fee4e04de62f9e257eca2a53eae3214b2647205b55
7
- data.tar.gz: db71ccb0aeaacbf25ec50b9c1f02a451b89aa70beb0d25703dd3c7b8ea533d4bf96f22df7f93471ca77ebdbaf0b01fbade572c121180742b7e1bef271e354553
6
+ metadata.gz: 6e5bb933a33b61524d07a8fd17e5a5e26dc96d812a97fa2ddebb4cb944a9bf6544ef38e7a67c4052feb5f4af891cf214f4aed9c7e878dd7f63547746f17e9000
7
+ data.tar.gz: f369b1958bfceb973d95f7e430778c169c7907d1aac4c02c0e9f510c8d00be838e735b34552d326b6df007ae43b8adbcd77564bc97f7efc454472fe8b10dfcc1
@@ -108,7 +108,7 @@ module Splinter
108
108
  # value - The value to select.
109
109
  def find_and_select_option(select_id, value)
110
110
  select = find(:css, "##{select_id}")
111
- path = ".//option[contains(./@value, '#{value}')]"
111
+ path = ".//option[contains(./@value, '#{value}')][1]"
112
112
 
113
113
  select.find(:xpath, path).select_option
114
114
  end
@@ -1,3 +1,3 @@
1
1
  module Splinter
2
- VERSION = Version = '0.1.0'
2
+ VERSION = Version = '0.1.1'
3
3
  end
@@ -29,6 +29,7 @@ describe Splinter, :type => :feature do
29
29
  f.text_field :name, "Josh"
30
30
  f.text_area :content, "Lorem ipsum"
31
31
  f.radio :privacy, "private"
32
+ f.select :country, "US"
32
33
  f.date :publish_at, time
33
34
  f.datetime :lock_at, time
34
35
  f.checkbox :publish, true
@@ -39,6 +40,7 @@ describe Splinter, :type => :feature do
39
40
  it { find_result(:name).should == "Josh" }
40
41
  it { find_result(:content).should == "Lorem ipsum" }
41
42
  it { find_result(:privacy).should == "private" }
43
+ it { find_result(:country).should == "US" }
42
44
  it { find_result("publish_at(1i)").should == time.year.to_s }
43
45
  it { find_result("publish_at(2i)").should == time.month.to_s }
44
46
  it { find_result("publish_at(3i)").should == time.day.to_s }
@@ -7,7 +7,7 @@
7
7
 
8
8
  <% if request.post? %>
9
9
  <ul id="results">
10
- <% %W(name content privacy publish_at(1i) publish_at(2i) publish_at(3i)
10
+ <% %W(name content privacy country publish_at(1i) publish_at(2i) publish_at(3i)
11
11
  publish lock_at(1i) lock_at(2i) lock_at(3i) lock_at(4i) lock_at(5i)).each do |key| %>
12
12
  <li data-result-for="<%= key %>"><%= params[:post][key] %></li>
13
13
  <% end %>
@@ -35,6 +35,15 @@
35
35
  </label>
36
36
  </p>
37
37
 
38
+ <p>
39
+ <label class="control-label" for="post_country">Country</label>
40
+ <select id="post_country" name="post[country]">
41
+ <option value=""></option>
42
+ <option value="US">US</option>
43
+ <option value="US">US</option>
44
+ </select>
45
+ </p>
46
+
38
47
  <p>
39
48
  <label class="date optional control-label" for="post_publish_at_1i"> Publish at</label>
40
49
  <select class="date optional" id="post_publish_at_1i" name="post[publish_at(1i)]">
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: splinter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Priddle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-26 00:00:00.000000000 Z
11
+ date: 2013-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -90,19 +90,19 @@ files:
90
90
  - Rakefile
91
91
  - README.markdown
92
92
  - lib/splinter.rb
93
- - lib/splinter/perf/deferred_garbage_collection.rb
94
- - lib/splinter/perf/shared_connection.rb
95
- - lib/splinter/capybara/actions.rb
96
- - lib/splinter/capybara/form_completer.rb
97
93
  - lib/splinter/capybara.rb
98
- - lib/splinter/rspec/deferred_garbage_collection.rb
99
94
  - lib/splinter/rspec/shared_connection.rb
95
+ - lib/splinter/rspec/deferred_garbage_collection.rb
96
+ - lib/splinter/capybara/form_completer.rb
97
+ - lib/splinter/capybara/actions.rb
98
+ - lib/splinter/perf/shared_connection.rb
99
+ - lib/splinter/perf/deferred_garbage_collection.rb
100
100
  - lib/splinter/rspec.rb
101
101
  - lib/splinter/version.rb
102
+ - spec/test_app/views/index.erb
103
+ - spec/test_app/server.rb
102
104
  - spec/spec_helper.rb
103
105
  - spec/splinter/capybara/actions_spec.rb
104
- - spec/test_app/server.rb
105
- - spec/test_app/views/index.erb
106
106
  homepage: https://github.com/site5/splinter
107
107
  licenses: []
108
108
  metadata: {}
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.0.3
126
+ rubygems_version: 2.0.2
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: Splinter is a Capybara Ninja