rspec-tapas 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f10e4f1e41b47b59254485d54f9127440531b951
4
- data.tar.gz: 427281a46f534e80876cd432c88d8b4e4df2a192
3
+ metadata.gz: 02d482bfe50d7a8b18f7b7b4c4fca20f55072bb0
4
+ data.tar.gz: 13460e4cb8ae5f5879c47a909fe855128bc7267b
5
5
  SHA512:
6
- metadata.gz: 519c3fdb1e282ea48f8139c6ec229e67c3ab479facf636cb9cfbc4490bce79775343948353e9c2ca808dbdfd865d23fa9dfe614fee55b771409e9279c7ef2ccc
7
- data.tar.gz: db3cac2a8cbf0bc892626c2d15f88b4ddbd386b36bedf442c99d4d4c03bb62524ce10ff374e93dc8eff667aa9403a34baffec11504e8f3692293e471049894b7
6
+ metadata.gz: 0b635329022669a7a7974a00c5b8b6d8802bc98524c736235855c98249db545db181d2afb3646997904e871a408a1336d1e59fa5ce895a3134314a4e8cea702d
7
+ data.tar.gz: a7541cb38c463665e958fc46c738a4d29b180e95825ba7f1a71b2244166aaa007d92866aa55644637eff5dff68a165e3a8abd4ec459ff56b51e5ea21685d25b4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.1.0
data/lib/rspec-tapas.rb CHANGED
@@ -1,10 +0,0 @@
1
- require 'rspec_extensions/behavior_dsl'
2
- require 'rspec_extensions/downloads_helpers'
3
- require 'rspec_extensions/feature_helpers'
4
- require 'rspec_extensions/get_message_part'
5
- require 'rspec_extensions/invoke_task'
6
- require 'rspec_extensions/json_response'
7
- require 'rspec_extensions/stub_env'
8
- require 'rspec_extensions/view_page'
9
- require 'rspec_extensions/matchers/have_table_row'
10
-
@@ -0,0 +1,9 @@
1
+ require_relative 'behavior_dsl'
2
+ require_relative 'downloads_helpers'
3
+ require_relative 'feature_helpers'
4
+ require_relative 'get_message_part'
5
+ require_relative 'invoke_task'
6
+ require_relative 'json_response'
7
+ require_relative 'stub_env'
8
+ require_relative 'view_page'
9
+ require_relative 'matchers/have_table_row'
@@ -3,7 +3,7 @@ module RspecExtensions
3
3
  module InvokeTask
4
4
  def invoke_task(name, options = {})
5
5
  task_path =
6
- metadata[:file_path].match(%r{spec/(?<file_path>.*)_spec\.rb})[:file_path]
6
+ RSpec.current_example.metadata[:file_path].match(%r{spec/(?<file_path>.*)_spec\.rb})[:file_path]
7
7
  loaded_files_excluding_current_rake_file =
8
8
  $".reject { |file| file == Rails.root.join("#{task_path}.rake").to_s }
9
9
  Rake.application = Rake::Application.new
@@ -1,4 +1,4 @@
1
- module RspecExRspecExtensionstensions
1
+ module RspecExtensions
2
2
  module StubEnv
3
3
  def stub_env(name, value)
4
4
  allow(ENV).to receive(:fetch).and_wrap_original do |m, *args|
File without changes
@@ -0,0 +1,73 @@
1
+ # Generated by juwelier
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+ # stub: rspec-tapas 0.1.0 ruby lib
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "rspec-tapas".freeze
9
+ s.version = "0.1.0"
10
+
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib".freeze]
13
+ s.authors = ["B\u0142a\u017Cej Kosmowski".freeze]
14
+ s.date = "2018-06-26"
15
+ s.description = "A selection of small rSpec extensions".freeze
16
+ s.email = "b.kosmowski@selleo.com".freeze
17
+ s.extra_rdoc_files = [
18
+ "LICENSE.txt",
19
+ "README.rdoc"
20
+ ]
21
+ s.files = [
22
+ ".document",
23
+ "Gemfile",
24
+ "Gemfile.lock",
25
+ "LICENSE.txt",
26
+ "README.rdoc",
27
+ "Rakefile",
28
+ "VERSION",
29
+ "lib/rspec-tapas.rb",
30
+ "lib/rspec_tapas/all.rb",
31
+ "lib/rspec_tapas/behavior_dsl.rb",
32
+ "lib/rspec_tapas/date_helpers.rb",
33
+ "lib/rspec_tapas/downloads_helpers.rb",
34
+ "lib/rspec_tapas/feature_helpers.rb",
35
+ "lib/rspec_tapas/get_message_part.rb",
36
+ "lib/rspec_tapas/invoke_task.rb",
37
+ "lib/rspec_tapas/json_response.rb",
38
+ "lib/rspec_tapas/locators/find_table_row.rb",
39
+ "lib/rspec_tapas/matchers/have_table_row.rb",
40
+ "lib/rspec_tapas/stub_env.rb",
41
+ "lib/rspec_tapas/view_page.rb",
42
+ "rspec-tapas.gemspec"
43
+ ]
44
+ s.homepage = "http://github.com/Selleo/rspec-tapas".freeze
45
+ s.licenses = ["MIT".freeze]
46
+ s.rubygems_version = "2.6.14".freeze
47
+ s.summary = "A selection of small rSpec extensions".freeze
48
+
49
+ if s.respond_to? :specification_version then
50
+ s.specification_version = 4
51
+
52
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
53
+ s.add_development_dependency(%q<shoulda>.freeze, [">= 0"])
54
+ s.add_development_dependency(%q<rdoc>.freeze, ["~> 3.12"])
55
+ s.add_development_dependency(%q<bundler>.freeze, ["~> 1.0"])
56
+ s.add_development_dependency(%q<juwelier>.freeze, ["~> 2.1.0"])
57
+ s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
58
+ else
59
+ s.add_dependency(%q<shoulda>.freeze, [">= 0"])
60
+ s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
61
+ s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
62
+ s.add_dependency(%q<juwelier>.freeze, ["~> 2.1.0"])
63
+ s.add_dependency(%q<simplecov>.freeze, [">= 0"])
64
+ end
65
+ else
66
+ s.add_dependency(%q<shoulda>.freeze, [">= 0"])
67
+ s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
68
+ s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
69
+ s.add_dependency(%q<juwelier>.freeze, ["~> 2.1.0"])
70
+ s.add_dependency(%q<simplecov>.freeze, [">= 0"])
71
+ end
72
+ end
73
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-tapas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Błażej Kosmowski
@@ -96,17 +96,19 @@ files:
96
96
  - Rakefile
97
97
  - VERSION
98
98
  - lib/rspec-tapas.rb
99
- - lib/rspec_extensions/behavior_dsl.rb
100
- - lib/rspec_extensions/date_helpers.rb
101
- - lib/rspec_extensions/downloads_helpers.rb
102
- - lib/rspec_extensions/feature_helpers.rb
103
- - lib/rspec_extensions/get_message_part.rb
104
- - lib/rspec_extensions/invoke_task.rb
105
- - lib/rspec_extensions/json_response.rb
106
- - lib/rspec_extensions/locators/find_table_row.rb
107
- - lib/rspec_extensions/matchers/have_table_row.rb
108
- - lib/rspec_extensions/stub_env.rb
109
- - lib/rspec_extensions/view_page.rb
99
+ - lib/rspec_tapas/all.rb
100
+ - lib/rspec_tapas/behavior_dsl.rb
101
+ - lib/rspec_tapas/date_helpers.rb
102
+ - lib/rspec_tapas/downloads_helpers.rb
103
+ - lib/rspec_tapas/feature_helpers.rb
104
+ - lib/rspec_tapas/get_message_part.rb
105
+ - lib/rspec_tapas/invoke_task.rb
106
+ - lib/rspec_tapas/json_response.rb
107
+ - lib/rspec_tapas/locators/find_table_row.rb
108
+ - lib/rspec_tapas/matchers/have_table_row.rb
109
+ - lib/rspec_tapas/stub_env.rb
110
+ - lib/rspec_tapas/view_page.rb
111
+ - rspec-tapas.gemspec
110
112
  homepage: http://github.com/Selleo/rspec-tapas
111
113
  licenses:
112
114
  - MIT