sinatra-switch 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sinatra/switch.rb +1 -1
- data/sinatra-switch.gemspec +1 -1
- data/test/switch_test.rb +2 -2
- metadata +2 -2
data/lib/sinatra/switch.rb
CHANGED
data/sinatra-switch.gemspec
CHANGED
data/test/switch_test.rb
CHANGED
@@ -42,9 +42,9 @@ class SinatraSwitchTest < Test::Unit::TestCase
|
|
42
42
|
def test_it_can_be_set_to_off
|
43
43
|
@session.post "/switch/light/off"
|
44
44
|
assert_equal @session.last_response.status, 200
|
45
|
-
|
45
|
+
|
46
46
|
@session.get "/switch/light"
|
47
|
-
assert_equal @session.last_response.status,
|
47
|
+
assert_equal @session.last_response.status, 503
|
48
48
|
assert_include @session.last_response.body, "light is OFF"
|
49
49
|
end
|
50
50
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-switch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -52,7 +52,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
52
52
|
version: '0'
|
53
53
|
segments:
|
54
54
|
- 0
|
55
|
-
hash:
|
55
|
+
hash: -1229471035886497454
|
56
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
57
|
none: false
|
58
58
|
requirements:
|