khronos 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/khronos/server/scheduler.rb +1 -1
- data/lib/khronos/version.rb +1 -1
- data/spec/integration/scheduler_server_spec.rb +4 -0
- metadata +1 -1
data/Gemfile.lock
CHANGED
@@ -49,7 +49,7 @@ module Khronos
|
|
49
49
|
# Retrieve a list of scheduling tasks
|
50
50
|
get '/tasks' do
|
51
51
|
if Storage::Schedule.name =~ /ActiveRecord/
|
52
|
-
criteria = Storage::Schedule
|
52
|
+
criteria = Storage::Schedule.where({})
|
53
53
|
params.each_pair do |field, value|
|
54
54
|
if field == 'context'
|
55
55
|
field = "#{field} LIKE ?"
|
data/lib/khronos/version.rb
CHANGED
@@ -98,6 +98,10 @@ describe Khronos::Server::Scheduler do
|
|
98
98
|
get('/tasks', {:context => "namespaced"})
|
99
99
|
last_response.status.should == 200
|
100
100
|
JSON.parse(last_response.body).length.should == 1
|
101
|
+
|
102
|
+
get('/tasks', {})
|
103
|
+
last_response.status.should == 200
|
104
|
+
JSON.parse(last_response.body).length.should == Khronos::Storage::Schedule.count
|
101
105
|
end
|
102
106
|
end
|
103
107
|
|