site_prism 1.0 → 1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,6 +38,10 @@ module SitePrism
38
38
  self.class.url_matcher
39
39
  end
40
40
 
41
+ def secure?
42
+ !current_url.match(/^https/).nil?
43
+ end
44
+
41
45
  def title
42
46
  title_selector = 'html > head > title'
43
47
  using_wait_time(0) { page.find(title_selector).text if page.has_selector?(title_selector) }
@@ -1,5 +1,6 @@
1
1
  module SitePrism
2
2
  class Section
3
+ include Capybara::DSL
3
4
  include ElementChecker
4
5
  extend ElementContainer
5
6
 
@@ -1,4 +1,4 @@
1
1
  module SitePrism
2
- VERSION = "1.0"
2
+ VERSION = "1.1"
3
3
  end
4
4
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: site_prism
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: "1.0"
5
+ version: "1.1"
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nat Ritmeyer
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-04-19 00:00:00 Z
13
+ date: 2012-06-14 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capybara