bible_gateway 0.0.8 → 0.0.9

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: c1b44e2ba49cfce9ccf56e305e458c150460dbb2
4
- data.tar.gz: 0316c4816aa198cc77347a8d37f6b3daf373d930
3
+ metadata.gz: 60712c324a1d65e200ca3cabec323b09f58b1709
4
+ data.tar.gz: 0a492351364e7bf4edb61d4c0dc4e2a6fc620b45
5
5
  SHA512:
6
- metadata.gz: 4ba5dbfc7763168e0ddf871f532067cb6ed6e270e17ec075d229066403909573d4ad21eb6694e23b1188e8668394fbf18fec1e7f0b0a8b56d96908630ac40762
7
- data.tar.gz: 5c77362001080b638cf23215d6a417c2f85052c685893f6f5392732c33d984df0535f199c0cd0c34ce5cdccbc7e8445251b7a73b3db40dde2563f99b3c2b3cae
6
+ metadata.gz: 0a7e1bb3738b94cda7910a19742b6acd24b09d0218890b9051ea49cffab118e2136e62e8e19795fefb397023b0b61a6c22862ea6c81512072a6dbb233b8648e5
7
+ data.tar.gz: e9ad62c20383174c6ad29b919a78bda9ac7e6a1c5ce21592b6a382e1317dfde84e09e5e78f024c3a85a4ce205a1d178b78e982ee3a977ef077cc4661bfcf02a5
@@ -3,3 +3,4 @@ rvm:
3
3
  - 1.9.2
4
4
  - 1.9.3
5
5
  - 2.0.0
6
+ - 2.1.1
@@ -1,3 +1,3 @@
1
1
  class BibleGateway
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -3,33 +3,33 @@ require "spec_helper"
3
3
 
4
4
  describe BibleGateway do
5
5
  it "should have a list of versions" do
6
- BibleGateway.versions.should_not be_empty
6
+ expect(BibleGateway.versions).not_to be_empty
7
7
  end
8
8
 
9
9
  describe "setting the version" do
10
10
  it "should have a default version" do
11
11
  gateway = BibleGateway.new
12
- gateway.version.should == :king_james_version
12
+ expect(gateway.version).to eq(:king_james_version)
13
13
  end
14
14
 
15
15
  it "should be able to set the version to use" do
16
16
  gateway = BibleGateway.new :english_standard_version
17
- gateway.version.should == :english_standard_version
17
+ expect(gateway.version).to eq(:english_standard_version)
18
18
  end
19
19
 
20
20
  it "should raise an exception for unknown version" do
21
- lambda { BibleGateway.new :unknown_version }.should raise_error(BibleGatewayError)
21
+ expect { BibleGateway.new :unknown_version }.to raise_error(BibleGatewayError)
22
22
  end
23
23
 
24
24
  it "should be able to change the version to use" do
25
25
  gateway = BibleGateway.new
26
26
  gateway.version = :english_standard_version
27
- gateway.version.should == :english_standard_version
27
+ expect(gateway.version).to eq(:english_standard_version)
28
28
  end
29
29
 
30
30
  it "should raise an exception when changing to unknown version" do
31
31
  gateway = BibleGateway.new
32
- lambda { gateway.version = :unknown_version }.should raise_error(BibleGatewayError)
32
+ expect { gateway.version = :unknown_version }.to raise_error(BibleGatewayError)
33
33
  end
34
34
  end
35
35
 
@@ -37,43 +37,43 @@ describe BibleGateway do
37
37
  context "verse" do
38
38
  it "should find the passage title" do
39
39
  title = BibleGateway.new(:english_standard_version).lookup("John 1:1")[:title]
40
- title.should == "John 1:1"
40
+ expect(title).to eq("John 1:1")
41
41
  end
42
42
 
43
43
  it "should find and clean the passage content" do
44
44
  content = BibleGateway.new(:english_standard_version).lookup("John 1:1")[:content]
45
- content.should include("<h3>The Word Became Flesh</h3>")
46
- content.should include("In the beginning was the Word, and the Word was with God, and the Word was God.")
45
+ expect(content).to include("<h3>The Word Became Flesh</h3>")
46
+ expect(content).to include("In the beginning was the Word, and the Word was with God, and the Word was God.")
47
47
  end
48
48
  end
49
49
 
50
50
  context "chapter" do
51
51
  it "should find the passage title" do
52
52
  title = BibleGateway.new(:english_standard_version).lookup("John 3")[:title]
53
- title.should == "John 3"
53
+ expect(title).to eq("John 3")
54
54
  end
55
55
 
56
56
  it "should find and clean the passage content" do
57
57
  content = BibleGateway.new(:english_standard_version).lookup("John 3")[:content]
58
- content.should include("<h3>You Must Be Born Again</h3>")
59
- content.should include("<h3>For God So Loved the World</h3>")
60
- content.should include("For God so loved the world,that he gave his only Son, that whoever believes in him should not perish but have eternal life.")
58
+ expect(content).to include("<h3>You Must Be Born Again</h3>")
59
+ expect(content).to include("<h3>For God So Loved the World</h3>")
60
+ expect(content).to include("For God so loved the world, that he gave his only Son, that whoever believes in him should not perish but have eternal life.")
61
61
  end
62
62
  end
63
63
 
64
64
  context "multiple chapters" do
65
65
  it "should find the passage title" do
66
66
  title = BibleGateway.new(:english_standard_version).lookup("Psalm 1-5")[:title]
67
- title.should == "Psalm 1-5"
67
+ expect(title).to eq("Psalm 1-5")
68
68
  end
69
69
 
70
70
  it "should find and clean the passage content" do
71
71
  content = BibleGateway.new(:english_standard_version).lookup("Psalm 1-5")[:content]
72
- content.should include("<h3>The Way of the Righteous and the Wicked</h3>")
73
- content.should include("<span class=\"chapternum\">1 </span>")
74
- content.should include("<h3>Save Me, O My God</h3>")
75
- content.should include("<span class=\"chapternum\">1 </span>")
76
- content.should include("For you are not a God who delights in wickedness;")
72
+ expect(content).to include("<h3>The Way of the Righteous and the Wicked</h3>")
73
+ expect(content).to include("<span class=\"chapternum\">1 </span>")
74
+ expect(content).to include("<h3>Save Me, O My God</h3>")
75
+ expect(content).to include("<span class=\"chapternum\">1 </span>")
76
+ expect(content).to include("For you are not a God who delights in wickedness;")
77
77
  end
78
78
  end
79
79
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bible_gateway
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoffrey Dagley