teachers_pet 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/teachers_pet/client_decorator.rb +2 -0
- data/lib/teachers_pet/version.rb +1 -1
- data/spec/cli_spec.rb +13 -2
- data/spec/integration_spec.rb +13 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 293791f01ea48c84167c90902b2c746751617ac1
|
4
|
+
data.tar.gz: 33d7f890862a1d527fd265e7882b690807eb9300
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0af8b9fb762e2d8e895bfd6e821392205ef3e789c9f911ad12df226785397b10b52d7cb7b196b050308e817493844807f368378dcf251dc0592cc852ce81e535
|
7
|
+
data.tar.gz: 76906e2fb2c0e443e21d6b7f9ccd7f493796a1eddaf90aaa397c825637af2052c79b65103ad9538c4d593ab164ac5d482d4fa32a778e8c75a7eeb941e8aa4c87
|
data/lib/teachers_pet/version.rb
CHANGED
data/spec/cli_spec.rb
CHANGED
@@ -3,9 +3,9 @@ require 'spec_helper'
|
|
3
3
|
describe TeachersPet::Cli do
|
4
4
|
include CommandHelpers
|
5
5
|
|
6
|
-
|
7
|
-
# ...using an arbirtrary command
|
6
|
+
# the command in each of these tests is arbitrary
|
8
7
|
|
8
|
+
it "throws an error for unsupported options" do
|
9
9
|
# Make sure it short-circuits
|
10
10
|
expect(TeachersPet::Actions::CreateStudentTeams).to_not receive(:new)
|
11
11
|
|
@@ -14,4 +14,15 @@ describe TeachersPet::Cli do
|
|
14
14
|
}
|
15
15
|
expect(output).to include('--unsupported-option')
|
16
16
|
end
|
17
|
+
|
18
|
+
it "shows the help output" do
|
19
|
+
stderr = nil
|
20
|
+
stdout = capture(:stdout) {
|
21
|
+
stderr = capture(:stderr) {
|
22
|
+
TeachersPet::Cli.start(%w(help))
|
23
|
+
}
|
24
|
+
}
|
25
|
+
expect(stderr).to eq('')
|
26
|
+
expect(stdout).to include('create_student_teams')
|
27
|
+
end
|
17
28
|
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'open3'
|
3
|
+
|
4
|
+
describe 'integration' do
|
5
|
+
describe 'help' do
|
6
|
+
it "shows the help output" do
|
7
|
+
stdout_str, stderr_str, status = Open3.capture3('bin/teachers_pet help')
|
8
|
+
expect(stderr_str).to eq('')
|
9
|
+
expect(stdout_str).to include('create_student_teams')
|
10
|
+
expect(status).to be_success
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teachers_pet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Britton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -201,6 +201,7 @@ files:
|
|
201
201
|
- spec/fixtures/issue.md
|
202
202
|
- spec/fixtures/students
|
203
203
|
- spec/fixtures/teams
|
204
|
+
- spec/integration_spec.rb
|
204
205
|
- spec/spec_helper.rb
|
205
206
|
- spec/support/command_helpers.rb
|
206
207
|
- spec/support/common_helpers.rb
|
@@ -225,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
226
|
version: '0'
|
226
227
|
requirements: []
|
227
228
|
rubyforge_project:
|
228
|
-
rubygems_version: 2.
|
229
|
+
rubygems_version: 2.3.0
|
229
230
|
signing_key:
|
230
231
|
specification_version: 4
|
231
232
|
summary: Command line tools to help teachers use GitHub in their classrooms
|
@@ -244,6 +245,7 @@ test_files:
|
|
244
245
|
- spec/fixtures/issue.md
|
245
246
|
- spec/fixtures/students
|
246
247
|
- spec/fixtures/teams
|
248
|
+
- spec/integration_spec.rb
|
247
249
|
- spec/spec_helper.rb
|
248
250
|
- spec/support/command_helpers.rb
|
249
251
|
- spec/support/common_helpers.rb
|