rest-assured 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +4 -1
- data/Guardfile +10 -0
- data/README.markdown +7 -7
- data/features/support/env.rb +47 -39
- data/features/support/selenium-fix.rb +8 -0
- data/lib/rest-assured.rb +1 -3
- data/lib/rest-assured/init.rb +4 -3
- data/lib/rest-assured/models/double.rb +4 -2
- data/lib/rest-assured/routes/double.rb +1 -1
- data/lib/rest-assured/version.rb +1 -1
- data/rest-assured.gemspec +5 -10
- data/spec/models/double_spec.rb +1 -0
- data/spec/spec_helper.rb +40 -33
- data/views/doubles/index.haml +2 -2
- data/views/layout.haml +13 -11
- data/views/redirects/index.haml +2 -2
- metadata +117 -122
data/Gemfile
CHANGED
@@ -14,4 +14,7 @@ gem RUBY_VERSION =~ /^1\.8/ ? 'ruby-debug' : 'ruby-debug19'
|
|
14
14
|
gem 'awesome_print'
|
15
15
|
gem 'interactive_editor'
|
16
16
|
gem 'launchy'
|
17
|
-
|
17
|
+
gem 'rake'
|
18
|
+
gem "spork", "> 0.9.0.rc"
|
19
|
+
gem "guard-spork"
|
20
|
+
gem 'sinatra-activerecord'
|
data/Guardfile
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# A sample Guardfile
|
2
|
+
# More info at https://github.com/guard/guard#readme
|
3
|
+
|
4
|
+
guard 'spork', :cucumber_env => { 'RACK_ENV' => 'test' }, :rspec_env => { 'RACK_ENV' => 'test' } do
|
5
|
+
watch('Gemfile')
|
6
|
+
watch('Gemfile.lock')
|
7
|
+
watch('spec/spec_helper.rb')
|
8
|
+
watch(%r{features/support/.+\.rb$})
|
9
|
+
watch(%r{^lib/.+\.rb$})
|
10
|
+
end
|
data/README.markdown
CHANGED
@@ -13,14 +13,14 @@ There are three main use cases:
|
|
13
13
|
|
14
14
|
You are going to need ruby >= 1.8.7. Install gem and run:
|
15
15
|
|
16
|
-
|
17
|
-
|
16
|
+
bash$ sudo gem install rest-assured # omit sudo if using rvm
|
17
|
+
bash$ rest-assured &
|
18
18
|
|
19
19
|
Or clone from github and run:
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
21
|
+
bash$ git clone git@github.com:BBC/rest-assured.git
|
22
|
+
bash$ cd rest-assured && bundle install # `gem install bundler` if command not found
|
23
|
+
bash$ ./bin/rest-assured &
|
24
24
|
|
25
25
|
This starts an instance of rest-assured on port 4578 (changable with --port option) and creates rest-assured.db (changable with --database option) in the current directory. You can now access it via REST or web interfaces on http://localhost:4578
|
26
26
|
|
@@ -28,10 +28,10 @@ This starts an instance of rest-assured on port 4578 (changable with --port opti
|
|
28
28
|
|
29
29
|
Double is a stub/mock of a particular external call. There is the following rest API for setting up doubles:
|
30
30
|
|
31
|
-
* `POST '/doubles', {
|
31
|
+
* `POST '/doubles', { fullpath: path, content: content, method: method }`
|
32
32
|
Creates double with the following parameters:
|
33
33
|
|
34
|
-
-
|
34
|
+
- __fullpath__ - e.g., `/some/api/object`, or with parameters in query string (useful for doubling GETs) - `/some/other/api/object?a=2&b=c`. Mandatory.
|
35
35
|
- __content__ - whatever you want this double to respond with. Mandatory.
|
36
36
|
- __method__ - one of http the following http verbs: GET, POST, PUT, DELETE. Optional. GET is default.
|
37
37
|
|
data/features/support/env.rb
CHANGED
@@ -1,53 +1,61 @@
|
|
1
1
|
$:.push File.expand_path('../../../lib', __FILE__)
|
2
|
-
require '
|
3
|
-
require '
|
4
|
-
|
5
|
-
|
6
|
-
require '
|
7
|
-
require '
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
require '
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
def
|
17
|
-
|
2
|
+
require 'rubygems'
|
3
|
+
require 'spork'
|
4
|
+
|
5
|
+
Spork.prefork do
|
6
|
+
require 'rspec/expectations'
|
7
|
+
require 'rack/test'
|
8
|
+
require 'capybara'
|
9
|
+
require 'capybara/firebug'
|
10
|
+
require 'capybara/cucumber'
|
11
|
+
require 'database_cleaner'
|
12
|
+
|
13
|
+
ENV['RACK_ENV'] = 'test'
|
14
|
+
|
15
|
+
module RackHeaderHack
|
16
|
+
def set_headers(headers)
|
17
|
+
browser = page.driver.browser
|
18
|
+
def browser.env
|
19
|
+
@env.merge(super)
|
20
|
+
end
|
21
|
+
def browser.env=(env)
|
22
|
+
@env = env
|
23
|
+
end
|
24
|
+
browser.env = headers
|
18
25
|
end
|
19
|
-
def browser.env=(env)
|
20
|
-
@env = env
|
21
|
-
end
|
22
|
-
browser.env = headers
|
23
26
|
end
|
24
|
-
end
|
25
27
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
Capybara.app = app
|
28
|
+
Capybara.register_driver :selenium do |app|
|
29
|
+
profile = Selenium::WebDriver::Firefox::Profile.new
|
30
|
+
profile.enable_firebug
|
30
31
|
|
31
|
-
Capybara.
|
32
|
-
|
33
|
-
profile.enable_firebug
|
32
|
+
Capybara::Selenium::Driver.new(app, :browser => :firefox, :profile => profile)
|
33
|
+
end
|
34
34
|
|
35
|
-
Capybara::
|
35
|
+
World(Capybara, Rack::Test::Methods, RackHeaderHack)
|
36
36
|
end
|
37
37
|
|
38
|
-
World(Capybara, Rack::Test::Methods, RackHeaderHack)
|
39
38
|
|
40
|
-
|
39
|
+
Spork.each_run do
|
40
|
+
require 'rest-assured'
|
41
41
|
|
42
|
-
|
43
|
-
|
44
|
-
end
|
42
|
+
def app
|
43
|
+
RestAssured::Application
|
44
|
+
end
|
45
|
+
Capybara.app = app
|
45
46
|
|
46
|
-
|
47
|
-
|
48
|
-
|
47
|
+
DatabaseCleaner.strategy = :truncation
|
48
|
+
|
49
|
+
Before do
|
50
|
+
DatabaseCleaner.start
|
51
|
+
end
|
49
52
|
|
50
|
-
|
51
|
-
|
53
|
+
Before "@ui" do
|
54
|
+
set_headers "HTTP_USER_AGENT" => 'Firefox'
|
55
|
+
end
|
56
|
+
|
57
|
+
After do
|
58
|
+
DatabaseCleaner.clean
|
59
|
+
end
|
52
60
|
end
|
53
61
|
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# details are here http://carol-nichols.com/2011/07/seleniumwebdrivererrorunhandlederror-ns_error_illegal_value/
|
2
|
+
class Capybara::Selenium::Driver
|
3
|
+
def find(selector)
|
4
|
+
browser.find_elements(:xpath, selector).map { |node| Capybara::Selenium::Node.new(self, node) }
|
5
|
+
rescue Selenium::WebDriver::Error::InvalidSelectorError => e
|
6
|
+
e.message =~ /nsIDOMXPathEvaluator.createNSResolver/ ? retry : raise
|
7
|
+
end
|
8
|
+
end
|
data/lib/rest-assured.rb
CHANGED
@@ -2,7 +2,6 @@ require 'rubygems'
|
|
2
2
|
require 'sinatra/base'
|
3
3
|
require 'haml'
|
4
4
|
require 'sass'
|
5
|
-
require 'sinatra/static_assets'
|
6
5
|
#require 'sinatra/reloader'
|
7
6
|
require 'rack-flash'
|
8
7
|
require 'sinatra/partials'
|
@@ -28,12 +27,11 @@ module RestAssured
|
|
28
27
|
enable :sessions
|
29
28
|
use Rack::Flash, :sweep => true
|
30
29
|
|
31
|
-
set :
|
30
|
+
set :public_folder, File.expand_path('../../public', __FILE__)
|
32
31
|
set :views, File.expand_path('../../views', __FILE__)
|
33
32
|
set :haml, :format => :html5
|
34
33
|
|
35
34
|
helpers Sinatra::Partials
|
36
|
-
register Sinatra::StaticAssets
|
37
35
|
|
38
36
|
helpers do
|
39
37
|
def browser?
|
data/lib/rest-assured/init.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
require '
|
2
|
-
require 'meta_where'
|
1
|
+
require 'active_record'
|
3
2
|
require 'rest-assured/config'
|
3
|
+
require 'logger'
|
4
4
|
|
5
5
|
$app_logger = Logger.new(AppConfig[:log_file])
|
6
6
|
$app_logger.level = Logger::DEBUG
|
@@ -15,7 +15,8 @@ ActiveRecord::Base.logger = if AppConfig[:environment] == 'production'
|
|
15
15
|
|
16
16
|
ActiveRecord::Base.establish_connection(
|
17
17
|
:adapter => "sqlite3",
|
18
|
-
:database => AppConfig[:database]
|
18
|
+
:database => AppConfig[:database],
|
19
|
+
:timeout => 10000
|
19
20
|
)
|
20
21
|
|
21
22
|
ActiveRecord::Migrator.migrate(
|
@@ -12,8 +12,10 @@ class Double < ActiveRecord::Base
|
|
12
12
|
|
13
13
|
private
|
14
14
|
def toggle_active
|
15
|
-
|
16
|
-
|
15
|
+
ne = id ? '!=' : 'IS NOT'
|
16
|
+
|
17
|
+
if active && Double.where("fullpath = ? AND active = ? AND id #{ne} ?", fullpath, true, id).exists?
|
18
|
+
Double.where("fullpath = ? AND id #{ne} ?", fullpath, id).update_all :active => false
|
17
19
|
end
|
18
20
|
end
|
19
21
|
|
data/lib/rest-assured/version.rb
CHANGED
data/rest-assured.gemspec
CHANGED
@@ -20,17 +20,12 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.executables = ['rest-assured']
|
21
21
|
s.require_paths = ['lib']
|
22
22
|
|
23
|
-
s.add_dependency 'sinatra'
|
24
|
-
s.add_dependency 'rack-flash'
|
23
|
+
s.add_dependency 'sinatra', '>= 1.3.1'
|
24
|
+
s.add_dependency 'rack-flash', '>= 0.1.2'
|
25
25
|
#s.add_dependency 'sinatra-reloader'
|
26
|
-
s.add_dependency 'haml'
|
27
|
-
s.add_dependency 'sass'
|
28
|
-
s.add_dependency 'sinatra-static-assets'
|
29
|
-
s.add_dependency 'thin'
|
26
|
+
s.add_dependency 'haml', '>= 3.1.3'
|
27
|
+
s.add_dependency 'sass', '>= 3.1.8'
|
30
28
|
s.add_dependency 'activerecord', '~> 3.0.0'
|
31
|
-
s.add_dependency '
|
32
|
-
s.add_dependency 'sqlite3'
|
33
|
-
s.add_dependency 'rake'
|
34
|
-
s.add_dependency 'meta_where'
|
29
|
+
s.add_dependency 'sqlite3', '>= 1.3.4'
|
35
30
|
end
|
36
31
|
|
data/spec/models/double_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,47 +1,54 @@
|
|
1
|
-
ENV['RACK_ENV'] = 'test'
|
2
|
-
|
3
1
|
require 'rubygems'
|
4
|
-
require
|
5
|
-
require 'rspec'
|
6
|
-
require 'shoulda-matchers'
|
7
|
-
require 'capybara/rspec'
|
8
|
-
require 'rack/test'
|
9
|
-
require 'database_cleaner'
|
2
|
+
require 'spork'
|
10
3
|
|
11
|
-
|
4
|
+
Spork.prefork do
|
5
|
+
require 'capybara/rspec'
|
6
|
+
require 'rack/test'
|
7
|
+
require 'database_cleaner'
|
12
8
|
|
13
|
-
|
14
|
-
|
15
|
-
|
9
|
+
ENV['RACK_ENV'] = 'test'
|
10
|
+
|
11
|
+
module XhrHelpers
|
12
|
+
def xhr(path, params = {})
|
13
|
+
verb = params.delete(:as) || :get
|
14
|
+
send(verb,path, params, "HTTP_X_REQUESTED_WITH" => "XMLHttpRequest")
|
15
|
+
end
|
16
|
+
alias_method :ajax, :xhr
|
17
|
+
end
|
18
|
+
|
19
|
+
RSpec.configure do |c|
|
20
|
+
c.include Capybara::DSL
|
21
|
+
c.include Rack::Test::Methods
|
22
|
+
c.include XhrHelpers
|
16
23
|
|
17
|
-
|
24
|
+
c.before(:each) do
|
25
|
+
DatabaseCleaner.start
|
26
|
+
end
|
18
27
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
28
|
+
c.after(:each) do
|
29
|
+
DatabaseCleaner.clean
|
30
|
+
end
|
31
|
+
|
32
|
+
c.before(:each, :ui => true) do
|
33
|
+
header 'User-Agent', 'Firefox'
|
34
|
+
end
|
35
|
+
|
36
|
+
c.before(:each, :ui => false) do
|
37
|
+
header 'User-Agent', nil
|
38
|
+
end
|
23
39
|
end
|
24
|
-
alias_method :ajax, :xhr
|
25
40
|
end
|
26
41
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
c.include XhrHelpers
|
42
|
+
Spork.each_run do
|
43
|
+
require File.expand_path('../../lib/rest-assured', __FILE__)
|
44
|
+
require 'shoulda-matchers'
|
31
45
|
|
32
|
-
|
33
|
-
DatabaseCleaner.start
|
34
|
-
end
|
46
|
+
DatabaseCleaner.strategy = :truncation
|
35
47
|
|
36
|
-
|
37
|
-
DatabaseCleaner.clean
|
38
|
-
end
|
48
|
+
Capybara.app = RestAssured::Application
|
39
49
|
|
40
|
-
|
41
|
-
|
50
|
+
def app
|
51
|
+
RestAssured::Application
|
42
52
|
end
|
43
53
|
|
44
|
-
c.before(:each, :ui => false) do
|
45
|
-
header 'User-Agent', nil
|
46
|
-
end
|
47
54
|
end
|
data/views/doubles/index.haml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
%h2 Doubles index
|
2
|
-
%a
|
2
|
+
%a{:href => '/doubles/new'} New double
|
3
3
|
%table
|
4
4
|
%thead
|
5
5
|
%tr
|
@@ -17,7 +17,7 @@
|
|
17
17
|
%td.label.text-center
|
18
18
|
%input.active-double-toggle{:type => 'radio', :name => fullpath, :checked => f.active, :data => { :double_id => f.id }}
|
19
19
|
%td.edit-link.text-center.white-space-nowrap
|
20
|
-
|
20
|
+
%a{:href => "/doubles/#{f.id}/edit"} Edit
|
21
21
|
|
|
22
22
|
%a.delete_link{:href => "/doubles/#{f.id}"} Delete
|
23
23
|
|
data/views/layout.haml
CHANGED
@@ -2,20 +2,22 @@
|
|
2
2
|
%html
|
3
3
|
%head
|
4
4
|
%title= request.path_info[1..-1] + ' - REST assured'
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
5
|
+
%link{:rel => 'stylesheet', :href => url('/css/inuit.css'), :type => 'text/css'}
|
6
|
+
%link{:rel => 'stylesheet', :href => url('/css/grid.inuit.css'), :type => 'text/css'}
|
7
|
+
%link{:rel => 'stylesheet', :href => url('/css/base.css'), :type => 'text/css'}
|
8
|
+
%link{:rel => 'stylesheet', :href => url('/css/jquery.jgrowl.css'), :type => 'text/css'}
|
9
|
+
%link{:rel => 'stylesheet', :href => 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.15/themes/base/jquery-ui.css', :type => 'text/css'}
|
10
|
+
%script{:src => 'http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js', :type => 'text/javascript'}
|
11
|
+
%script{:src => 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.15/jquery-ui.min.js', :type => 'text/javascript'}
|
12
|
+
%script{:src => url('/javascript/jquery.jgrowl_minimized.js'), :type => 'text/javascript'}
|
13
|
+
%script{:src => url('/javascript/application.js'), :type => 'text/javascript'}
|
14
14
|
%body.wrapper
|
15
15
|
%ul.nav
|
16
|
-
%li
|
16
|
+
%li
|
17
|
+
%a{:href => '/doubles'} Doubles
|
17
18
|
%li |
|
18
|
-
%li
|
19
|
+
%li
|
20
|
+
%a{:href => '/redirects'} Redirects
|
19
21
|
|
20
22
|
- if flash[:notice]
|
21
23
|
.message.success= flash[:notice]
|
data/views/redirects/index.haml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
%h2 Redirects index
|
2
|
-
%a
|
2
|
+
%a{:href => '/redirects/new'} New redirect
|
3
3
|
%table#redirects
|
4
4
|
%thead
|
5
5
|
%tr
|
@@ -15,7 +15,7 @@
|
|
15
15
|
%td= r.pattern
|
16
16
|
%td= r.to
|
17
17
|
%td.edit-link.text-center.white-space-nowrap
|
18
|
-
|
18
|
+
%a{:href => "/redirects/#{r.id}/edit"} Edit
|
19
19
|
|
|
20
20
|
%a.delete_link{:href => "/redirects/#{r.id}"} Delete
|
21
21
|
|
metadata
CHANGED
@@ -1,148 +1,131 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rest-assured
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Artem Avetisyan
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
17
|
+
|
18
|
+
date: 2011-10-07 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
16
21
|
name: sinatra
|
17
|
-
requirement: &2168546540 !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
|
-
requirements:
|
20
|
-
- - ! '>='
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '0'
|
23
|
-
type: :runtime
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: *2168546540
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: rack-flash
|
28
|
-
requirement: &2168545960 !ruby/object:Gem::Requirement
|
29
|
-
none: false
|
30
|
-
requirements:
|
31
|
-
- - ! '>='
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :runtime
|
35
22
|
prerelease: false
|
36
|
-
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: haml
|
39
|
-
requirement: &2168545440 !ruby/object:Gem::Requirement
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
40
24
|
none: false
|
41
|
-
requirements:
|
42
|
-
- -
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 25
|
29
|
+
segments:
|
30
|
+
- 1
|
31
|
+
- 3
|
32
|
+
- 1
|
33
|
+
version: 1.3.1
|
45
34
|
type: :runtime
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rack-flash
|
46
38
|
prerelease: false
|
47
|
-
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: sass
|
50
|
-
requirement: &2168544980 !ruby/object:Gem::Requirement
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
51
40
|
none: false
|
52
|
-
requirements:
|
53
|
-
- -
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 31
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
- 1
|
48
|
+
- 2
|
49
|
+
version: 0.1.2
|
56
50
|
type: :runtime
|
51
|
+
version_requirements: *id002
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
name: haml
|
57
54
|
prerelease: false
|
58
|
-
|
59
|
-
- !ruby/object:Gem::Dependency
|
60
|
-
name: sinatra-static-assets
|
61
|
-
requirement: &2168544440 !ruby/object:Gem::Requirement
|
55
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
62
56
|
none: false
|
63
|
-
requirements:
|
64
|
-
- -
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
hash: 5
|
61
|
+
segments:
|
62
|
+
- 3
|
63
|
+
- 1
|
64
|
+
- 3
|
65
|
+
version: 3.1.3
|
67
66
|
type: :runtime
|
67
|
+
version_requirements: *id003
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: sass
|
68
70
|
prerelease: false
|
69
|
-
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: thin
|
72
|
-
requirement: &2168536860 !ruby/object:Gem::Requirement
|
71
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
73
72
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
hash: 19
|
77
|
+
segments:
|
78
|
+
- 3
|
79
|
+
- 1
|
80
|
+
- 8
|
81
|
+
version: 3.1.8
|
78
82
|
type: :runtime
|
79
|
-
|
80
|
-
|
81
|
-
- !ruby/object:Gem::Dependency
|
83
|
+
version_requirements: *id004
|
84
|
+
- !ruby/object:Gem::Dependency
|
82
85
|
name: activerecord
|
83
|
-
|
86
|
+
prerelease: false
|
87
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
84
88
|
none: false
|
85
|
-
requirements:
|
89
|
+
requirements:
|
86
90
|
- - ~>
|
87
|
-
- !ruby/object:Gem::Version
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
hash: 7
|
93
|
+
segments:
|
94
|
+
- 3
|
95
|
+
- 0
|
96
|
+
- 0
|
88
97
|
version: 3.0.0
|
89
98
|
type: :runtime
|
90
|
-
|
91
|
-
|
92
|
-
- !ruby/object:Gem::Dependency
|
93
|
-
name: sinatra-activerecord
|
94
|
-
requirement: &2168535700 !ruby/object:Gem::Requirement
|
95
|
-
none: false
|
96
|
-
requirements:
|
97
|
-
- - ! '>='
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
version: '0'
|
100
|
-
type: :runtime
|
101
|
-
prerelease: false
|
102
|
-
version_requirements: *2168535700
|
103
|
-
- !ruby/object:Gem::Dependency
|
99
|
+
version_requirements: *id005
|
100
|
+
- !ruby/object:Gem::Dependency
|
104
101
|
name: sqlite3
|
105
|
-
requirement: &2168535100 !ruby/object:Gem::Requirement
|
106
|
-
none: false
|
107
|
-
requirements:
|
108
|
-
- - ! '>='
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
type: :runtime
|
112
102
|
prerelease: false
|
113
|
-
|
114
|
-
- !ruby/object:Gem::Dependency
|
115
|
-
name: rake
|
116
|
-
requirement: &2168534540 !ruby/object:Gem::Requirement
|
103
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
117
104
|
none: false
|
118
|
-
requirements:
|
119
|
-
- -
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
hash: 19
|
109
|
+
segments:
|
110
|
+
- 1
|
111
|
+
- 3
|
112
|
+
- 4
|
113
|
+
version: 1.3.4
|
122
114
|
type: :runtime
|
123
|
-
|
124
|
-
version_requirements: *2168534540
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: meta_where
|
127
|
-
requirement: &2168534000 !ruby/object:Gem::Requirement
|
128
|
-
none: false
|
129
|
-
requirements:
|
130
|
-
- - ! '>='
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
version: '0'
|
133
|
-
type: :runtime
|
134
|
-
prerelease: false
|
135
|
-
version_requirements: *2168534000
|
115
|
+
version_requirements: *id006
|
136
116
|
description:
|
137
|
-
email:
|
117
|
+
email:
|
138
118
|
- artem.avetisyan@bbc.co.uk
|
139
|
-
executables:
|
119
|
+
executables:
|
140
120
|
- rest-assured
|
141
121
|
extensions: []
|
122
|
+
|
142
123
|
extra_rdoc_files: []
|
143
|
-
|
124
|
+
|
125
|
+
files:
|
144
126
|
- .gitignore
|
145
127
|
- Gemfile
|
128
|
+
- Guardfile
|
146
129
|
- LICENSE
|
147
130
|
- README.markdown
|
148
131
|
- Rakefile
|
@@ -167,6 +150,7 @@ files:
|
|
167
150
|
- features/step_definitions/redirect_rules_steps.rb
|
168
151
|
- features/step_definitions/support/numeric_transforms.rb
|
169
152
|
- features/support/env.rb
|
153
|
+
- features/support/selenium-fix.rb
|
170
154
|
- lib/rest-assured.rb
|
171
155
|
- lib/rest-assured/config.rb
|
172
156
|
- lib/rest-assured/init.rb
|
@@ -207,32 +191,42 @@ files:
|
|
207
191
|
- views/redirects/edit.haml
|
208
192
|
- views/redirects/index.haml
|
209
193
|
- views/redirects/new.haml
|
210
|
-
has_rdoc: true
|
211
194
|
homepage: https://github.com/BBC/rest-assured
|
212
195
|
licenses: []
|
196
|
+
|
213
197
|
post_install_message:
|
214
198
|
rdoc_options: []
|
215
|
-
|
199
|
+
|
200
|
+
require_paths:
|
216
201
|
- lib
|
217
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
202
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
218
203
|
none: false
|
219
|
-
requirements:
|
220
|
-
- -
|
221
|
-
- !ruby/object:Gem::Version
|
204
|
+
requirements:
|
205
|
+
- - ">="
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
hash: 57
|
208
|
+
segments:
|
209
|
+
- 1
|
210
|
+
- 8
|
211
|
+
- 7
|
222
212
|
version: 1.8.7
|
223
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
213
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
224
214
|
none: false
|
225
|
-
requirements:
|
226
|
-
- -
|
227
|
-
- !ruby/object:Gem::Version
|
228
|
-
|
215
|
+
requirements:
|
216
|
+
- - ">="
|
217
|
+
- !ruby/object:Gem::Version
|
218
|
+
hash: 3
|
219
|
+
segments:
|
220
|
+
- 0
|
221
|
+
version: "0"
|
229
222
|
requirements: []
|
223
|
+
|
230
224
|
rubyforge_project: rest-assured
|
231
|
-
rubygems_version: 1.6
|
225
|
+
rubygems_version: 1.8.6
|
232
226
|
signing_key:
|
233
227
|
specification_version: 3
|
234
228
|
summary: A tool for high level mocking/stubbing HTTP based REST services
|
235
|
-
test_files:
|
229
|
+
test_files:
|
236
230
|
- features/doubles_via_api.feature
|
237
231
|
- features/doubles_via_ui.feature
|
238
232
|
- features/persistence.feature
|
@@ -243,6 +237,7 @@ test_files:
|
|
243
237
|
- features/step_definitions/redirect_rules_steps.rb
|
244
238
|
- features/step_definitions/support/numeric_transforms.rb
|
245
239
|
- features/support/env.rb
|
240
|
+
- features/support/selenium-fix.rb
|
246
241
|
- spec/functional/double_routes_spec.rb
|
247
242
|
- spec/functional/redirect_routes_spec.rb
|
248
243
|
- spec/models/double_spec.rb
|