mackarel 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +68 -0
- data/Rakefile +10 -0
- data/bin/console +11 -0
- data/bin/setup +8 -0
- data/features.rb +93 -0
- data/lib/mackarel/capybara.rb +81 -0
- data/lib/mackarel/core.rb +36 -0
- data/lib/mackarel/version.rb +3 -0
- data/lib/mackarel.rb +8 -0
- data/mackarel.gemspec +35 -0
- metadata +244 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 24cbd842389166c7acbf49dc9d874befff60f5f5
|
4
|
+
data.tar.gz: 15ff2f783257ea8359de3bea80aa2ce3f3857d62
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 46e6b864a1b7216b6edbf9e7b051693c0eaec1e335c87aa1eb23efe17e31a5e126129fa9ca17e375a49c3d8282255e72710913724af0baf8777baf1d7c898b60
|
7
|
+
data.tar.gz: a35787e7a02803702fc2243d1e6411744f205c74256d965afc96e906b18799f1e381e3c2ae24de4e38a18ac4878acf5d630f311122a524f46a8c9536712e0929
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at paolino.gianrossi@gmail.com. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Paolo Gianrossi
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
# Mackarel
|
2
|
+
|
3
|
+
Mackarel is a small, hacky extension for acceptance testing in Rails with Capybara and FactoryGirl.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'mackarel', group: :test
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install mackarel
|
20
|
+
|
21
|
+
In your spec/spec_helper.rb file add
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
config.include Mackarel
|
25
|
+
```
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
Mackarel allows you to write acceptance tests in Rails in a readable way without having to deal with things like Cucumber. It uses feature tests with RSpec, Factorygirl as the factory for models, and generally follows my setup.
|
30
|
+
|
31
|
+
You can do things like:
|
32
|
+
|
33
|
+
```ruby
|
34
|
+
RSpec.feature "Visiting the homepage" do
|
35
|
+
|
36
|
+
scenario "'Logo' as a header" do
|
37
|
+
when_i { visit root_path }
|
38
|
+
|
39
|
+
# There is an image on the page, with the alt_text of "Logo"
|
40
|
+
i_find_an :image, with_text: "Logo"
|
41
|
+
end
|
42
|
+
|
43
|
+
scenario "I find a Log in button" do
|
44
|
+
when_i { visit root_path }
|
45
|
+
and_i { click_on I18n.t("devise.sign_in") }
|
46
|
+
|
47
|
+
i_am_taken_to_the new_user_session_path
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
```
|
52
|
+
|
53
|
+
### TODO: Document all helpers
|
54
|
+
|
55
|
+
## Development
|
56
|
+
|
57
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
58
|
+
|
59
|
+
[rubygems.org](https://rubygems.org).
|
60
|
+
|
61
|
+
## Contributing
|
62
|
+
|
63
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/paologianrossi/mackarel. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
64
|
+
|
65
|
+
|
66
|
+
## License
|
67
|
+
|
68
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "mackarel"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
require "pry"
|
11
|
+
Pry.start
|
data/bin/setup
ADDED
data/features.rb
ADDED
@@ -0,0 +1,93 @@
|
|
1
|
+
module FeatureLang
|
2
|
+
|
3
|
+
def when_i
|
4
|
+
yield
|
5
|
+
end
|
6
|
+
|
7
|
+
def i_am_taken_to(path)
|
8
|
+
expect(current_path).to eq path
|
9
|
+
end
|
10
|
+
|
11
|
+
def when_there_exists_a(factory, overrides={})
|
12
|
+
called = overrides.delete(:called) || factory
|
13
|
+
instance_variable_set("@#{called}", FactoryGirl.create(factory, overrides))
|
14
|
+
end
|
15
|
+
|
16
|
+
def when_there_exist(number, factory, overrides=nil)
|
17
|
+
instance_variable_set("@#{factory}", [])
|
18
|
+
number.times do
|
19
|
+
instance = FactoryGirl.create(factory, overrides)
|
20
|
+
instance_variable_get("@#{factory}") << instance
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def fill_the_form_with(attributes)
|
25
|
+
attributes.each do |field_name, value|
|
26
|
+
field = page.find_field(field_name)
|
27
|
+
next if field.set(value)
|
28
|
+
select_on_form(field_name, value)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def fill_autocomplete(field="input[data-autocomplete]", with:)
|
33
|
+
fill_in field, with: with
|
34
|
+
page.execute_script %Q{ $('#{field}').trigger("focus") }
|
35
|
+
page.execute_script %Q{ $('#{field}').trigger("keydown") }
|
36
|
+
sleep 1
|
37
|
+
page.execute_script %Q{ $('.ui-menu-item a:contains("#{with}")').trigger("mouseenter").trigger("click"); }
|
38
|
+
end
|
39
|
+
|
40
|
+
def select_on_form(field_name, value)
|
41
|
+
field = page.find_field(field_name)
|
42
|
+
[value].flatten.each do |single_value|
|
43
|
+
field.find(:option, single_value).select_option
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
def submit_the_form
|
48
|
+
page.find("form").find(:button).click
|
49
|
+
end
|
50
|
+
|
51
|
+
def i_can_see(something)
|
52
|
+
expect(page).to have_content(something)
|
53
|
+
end
|
54
|
+
|
55
|
+
def i_find(selector, opts={})
|
56
|
+
text = opts.delete(:with_text)
|
57
|
+
case selector
|
58
|
+
when String
|
59
|
+
expect(page).to have_selector selector, text: text
|
60
|
+
when :link
|
61
|
+
pointing_to = opts.delete(:pointing_to)
|
62
|
+
expect(page).to have_link text, href: pointing_to
|
63
|
+
when :image
|
64
|
+
src = opts.delete(:with_src)
|
65
|
+
if text.blank?
|
66
|
+
expect(page).to have_xpath("//img[@src='#{src}']")
|
67
|
+
else
|
68
|
+
expect(page).to have_xpath("//img[@alt='#{text}' and @src='#{src}']")
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
alias and_i when_i
|
74
|
+
alias and_also when_i
|
75
|
+
alias as when_i
|
76
|
+
|
77
|
+
alias when_there_exists_an when_there_exists_a
|
78
|
+
alias and_there_exists_a when_there_exists_a
|
79
|
+
alias and_there_exists_an when_there_exists_a
|
80
|
+
|
81
|
+
alias and_there_exist when_there_exist
|
82
|
+
|
83
|
+
alias and_i_can_see i_can_see
|
84
|
+
|
85
|
+
alias i_am_taken_to_the i_am_taken_to
|
86
|
+
alias and_i_am_taken_to i_am_taken_to
|
87
|
+
alias and_i_am_taken_to_the i_am_taken_to
|
88
|
+
alias and_i_find i_find
|
89
|
+
alias i_find_a i_find
|
90
|
+
alias i_find_an i_find
|
91
|
+
alias and_i_find_an i_find
|
92
|
+
alias and_i_find_a i_find
|
93
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
module Mackarel
|
2
|
+
module Capybara
|
3
|
+
def fill_the_form_with(attributes)
|
4
|
+
attributes.each do |field_name, value|
|
5
|
+
field = page.find_field(field_name)
|
6
|
+
next if field.set(value)
|
7
|
+
select_on_form(field_name, value)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
def fill_autocomplete(field="input[data-autocomplete]", options)
|
12
|
+
fill_in field, with: options.delete(:with)
|
13
|
+
page.execute_script %Q{ $('#{field}').trigger("focus") }
|
14
|
+
page.execute_script %Q{ $('#{field}').trigger("keydown") }
|
15
|
+
sleep 1
|
16
|
+
page.execute_script %Q{ $('.ui-menu-item a:contains("#{with}")').trigger("mouseenter").trigger("click"); }
|
17
|
+
end
|
18
|
+
|
19
|
+
def select_on_form(field_name, value)
|
20
|
+
field = page.find_field(field_name)
|
21
|
+
[value].flatten.each do |single_value|
|
22
|
+
field.find(:option, single_value).select_option
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def submit_the_form(selector="")
|
27
|
+
page.find("form#{selector}").find(:button).click
|
28
|
+
end
|
29
|
+
|
30
|
+
def i_can_see(something)
|
31
|
+
expect(page).to have_content(something)
|
32
|
+
end
|
33
|
+
|
34
|
+
def i_cannot_see(something)
|
35
|
+
expect(page).not_to have_content(something)
|
36
|
+
end
|
37
|
+
|
38
|
+
def i_find(selector, opts={})
|
39
|
+
text = opts.delete(:with_text)
|
40
|
+
case selector
|
41
|
+
when String
|
42
|
+
expect(page).to have_selector selector, text: text
|
43
|
+
when :link
|
44
|
+
pointing_to = opts.delete(:pointing_to)
|
45
|
+
if pointing_to.nil?
|
46
|
+
expect(page).to have_link text
|
47
|
+
else
|
48
|
+
expect(page).to have_link text, href: pointing_to
|
49
|
+
end
|
50
|
+
when :image
|
51
|
+
src = opts.delete(:with_src)
|
52
|
+
expect(page).to have_xpath(image_path(src, text))
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
def image_path(src, alt)
|
57
|
+
"//img#{image_filters(src, alt)}"
|
58
|
+
end
|
59
|
+
|
60
|
+
def image_filters(src, alt)
|
61
|
+
guts = [alt_str(alt), src_str(src)].compact
|
62
|
+
guts = guts.join(" and ")
|
63
|
+
guts.empty? ? "" : "[#{guts}]"
|
64
|
+
end
|
65
|
+
|
66
|
+
def alt_str(alt)
|
67
|
+
"@alt='#{alt}'" if alt
|
68
|
+
end
|
69
|
+
|
70
|
+
def src_str(src)
|
71
|
+
"contains(@src, '#{src}')" if src
|
72
|
+
end
|
73
|
+
|
74
|
+
alias and_i_find i_find
|
75
|
+
alias i_find_a i_find
|
76
|
+
alias i_find_an i_find
|
77
|
+
alias and_i_find_an i_find
|
78
|
+
alias and_i_find_a i_find
|
79
|
+
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module Mackarel
|
2
|
+
module Core
|
3
|
+
def when_i
|
4
|
+
yield
|
5
|
+
end
|
6
|
+
|
7
|
+
def i_am_taken_to(path)
|
8
|
+
expect(current_path).to eq path
|
9
|
+
end
|
10
|
+
|
11
|
+
def when_there_exists_a(factory, overrides={})
|
12
|
+
called = overrides.delete(:called) || factory
|
13
|
+
instance_variable_set("@#{called}", FactoryGirl.create(factory, overrides))
|
14
|
+
end
|
15
|
+
|
16
|
+
def when_there_exist(number, factory, overrides={})
|
17
|
+
called = overrides.delete(:called) || factory
|
18
|
+
instance_variable_set("@#{called}", FactoryGirl.create_list(factory, number, overrides))
|
19
|
+
end
|
20
|
+
|
21
|
+
alias and_i when_i
|
22
|
+
alias and_also when_i
|
23
|
+
alias given when_i
|
24
|
+
|
25
|
+
alias i_am_taken_to_the i_am_taken_to
|
26
|
+
alias and_i_am_taken_to i_am_taken_to
|
27
|
+
alias and_i_am_taken_to_the i_am_taken_to
|
28
|
+
|
29
|
+
alias when_there_exists_an when_there_exists_a
|
30
|
+
alias and_there_exists_a when_there_exists_a
|
31
|
+
alias and_there_exists_an when_there_exists_a
|
32
|
+
|
33
|
+
alias and_there_exist when_there_exist
|
34
|
+
|
35
|
+
end
|
36
|
+
end
|
data/lib/mackarel.rb
ADDED
data/mackarel.gemspec
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'mackarel/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "mackarel"
|
8
|
+
spec.version = Mackarel::VERSION
|
9
|
+
spec.authors = ["Paolo Gianrossi"]
|
10
|
+
spec.email = ["paolino.gianrossi@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Simple feature testing for Rails with Capybara and Rspec}
|
13
|
+
spec.description = %q{Mackarel allows you to write acceptance tests in Rails in a readable way without having to deal with things like Cucumber. It uses feature tests with RSpec, Factorygirl as the factory for models, and generally follows my setup.}
|
14
|
+
spec.homepage = "https://github.com/paologianrossi/mackarel"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
21
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
22
|
+
spec.add_development_dependency "pry"
|
23
|
+
spec.add_development_dependency "awesome_print"
|
24
|
+
spec.add_development_dependency "sinatra"
|
25
|
+
spec.add_development_dependency "tilt"
|
26
|
+
spec.add_development_dependency "rack"
|
27
|
+
spec.add_development_dependency "nokogiri"
|
28
|
+
spec.add_development_dependency "rack-test"
|
29
|
+
|
30
|
+
spec.add_dependency "rspec", "~> 3"
|
31
|
+
spec.add_dependency "capybara", "~> 2"
|
32
|
+
spec.add_dependency "poltergeist", "~> 1"
|
33
|
+
spec.add_dependency "factory_girl", "~> 4"
|
34
|
+
|
35
|
+
end
|
metadata
ADDED
@@ -0,0 +1,244 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mackarel
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Paolo Gianrossi
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-12-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.12'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.12'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pry
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: awesome_print
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: sinatra
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: tilt
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rack
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: nokogiri
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rack-test
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rspec
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '3'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '3'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: capybara
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '2'
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '2'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: poltergeist
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '1'
|
174
|
+
type: :runtime
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '1'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: factory_girl
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '4'
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '4'
|
195
|
+
description: Mackarel allows you to write acceptance tests in Rails in a readable
|
196
|
+
way without having to deal with things like Cucumber. It uses feature tests with
|
197
|
+
RSpec, Factorygirl as the factory for models, and generally follows my setup.
|
198
|
+
email:
|
199
|
+
- paolino.gianrossi@gmail.com
|
200
|
+
executables: []
|
201
|
+
extensions: []
|
202
|
+
extra_rdoc_files: []
|
203
|
+
files:
|
204
|
+
- ".gitignore"
|
205
|
+
- ".rspec"
|
206
|
+
- ".travis.yml"
|
207
|
+
- CODE_OF_CONDUCT.md
|
208
|
+
- Gemfile
|
209
|
+
- LICENSE.txt
|
210
|
+
- README.md
|
211
|
+
- Rakefile
|
212
|
+
- bin/console
|
213
|
+
- bin/setup
|
214
|
+
- features.rb
|
215
|
+
- lib/mackarel.rb
|
216
|
+
- lib/mackarel/capybara.rb
|
217
|
+
- lib/mackarel/core.rb
|
218
|
+
- lib/mackarel/version.rb
|
219
|
+
- mackarel.gemspec
|
220
|
+
homepage: https://github.com/paologianrossi/mackarel
|
221
|
+
licenses:
|
222
|
+
- MIT
|
223
|
+
metadata: {}
|
224
|
+
post_install_message:
|
225
|
+
rdoc_options: []
|
226
|
+
require_paths:
|
227
|
+
- lib
|
228
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
229
|
+
requirements:
|
230
|
+
- - ">="
|
231
|
+
- !ruby/object:Gem::Version
|
232
|
+
version: '0'
|
233
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
234
|
+
requirements:
|
235
|
+
- - ">="
|
236
|
+
- !ruby/object:Gem::Version
|
237
|
+
version: '0'
|
238
|
+
requirements: []
|
239
|
+
rubyforge_project:
|
240
|
+
rubygems_version: 2.5.1
|
241
|
+
signing_key:
|
242
|
+
specification_version: 4
|
243
|
+
summary: Simple feature testing for Rails with Capybara and Rspec
|
244
|
+
test_files: []
|