big_eyed_al 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -1
- data/lib/big_eyed_al/version.rb +1 -1
- data/lib/big_eyed_al.rb +6 -2
- data/spec/big_eyed_al_spec.rb +15 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f24b9c658654ee25168678f45189252dd1f6d5f3
|
4
|
+
data.tar.gz: ecc58d65a94e19d3c25125f390a7d5d094ff5e23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25aebfd9e6430be71d4877e5441472c896d45b41436d5b7e88743206558a57b56b34bb27d6e56fd67cd573591e800aa29f0b77d3dbc2168f51b6b30aee690994
|
7
|
+
data.tar.gz: e301cb3e5985f284389a4bf9f05e613130cec6abd3cf5990340b629bc86b267d2d4ac190edffa57078e67325bb6dff30d37f6aae0ce0a35e63aa6c9ac187e691
|
data/README.md
CHANGED
@@ -18,7 +18,12 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
- Open IRB/Pry
|
22
|
+
- require 'big_eyed_al'
|
23
|
+
- create a class Alex and include the module BigEyedAl
|
24
|
+
- create an instance of Alex
|
25
|
+
- run the method 'said' on the instance along with a statement or question as an argument
|
26
|
+
|
22
27
|
|
23
28
|
## Contributing
|
24
29
|
|
data/lib/big_eyed_al/version.rb
CHANGED
data/lib/big_eyed_al.rb
CHANGED
data/spec/big_eyed_al_spec.rb
CHANGED
@@ -6,8 +6,20 @@ require 'spec_helper'
|
|
6
6
|
|
7
7
|
let(:alex) { Alex.new }
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
context 'when Alex makes a statement' do
|
10
|
+
|
11
|
+
it 'it should say stop making silly statements' do
|
12
|
+
expect(alex.said("Hello")).to eq "Stop making silly statements, Alex."
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
context 'when Alex asks a question' do
|
18
|
+
|
19
|
+
it 'it should say stop asking questions' do
|
20
|
+
expect(alex.said("Why?")).to eq "Stop asking questions, Alex."
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
12
24
|
|
13
25
|
end
|