rspectacular 0.5.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,37 +1,39 @@
1
- begin
2
- require 'database_cleaner'
1
+ if defined? ActiveRecord::Base
2
+ begin
3
+ require 'database_cleaner'
3
4
 
4
- RSpec.configure do |config|
5
- config.before(:suite) do
6
- DatabaseCleaner.clean_with(:truncation)
7
- end
5
+ RSpec.configure do |config|
6
+ config.before(:suite) do
7
+ DatabaseCleaner.clean_with(:truncation)
8
+ end
8
9
 
9
- config.before(:each) do
10
- DatabaseCleaner.strategy = :transaction
11
- end
10
+ config.before(:each) do
11
+ DatabaseCleaner.strategy = :transaction
12
+ end
12
13
 
13
- config.before(:each, :js => true) do
14
- DatabaseCleaner.strategy = :truncation, { :pre_count => true }
15
- end
14
+ config.before(:each, :js => true) do
15
+ DatabaseCleaner.strategy = :truncation, { :pre_count => true }
16
+ end
16
17
 
17
- config.before(:each) do
18
- DatabaseCleaner.start
19
- end
18
+ config.before(:each) do
19
+ DatabaseCleaner.start
20
+ end
20
21
 
21
- config.after(:each) do
22
- DatabaseCleaner.clean
22
+ config.after(:each) do
23
+ DatabaseCleaner.clean
24
+ end
23
25
  end
24
- end
25
26
 
26
- if defined? RSpec::Rails
27
- RSpec.configure do |config|
28
- config.use_transactional_fixtures = false
27
+ if defined? RSpec::Rails
28
+ RSpec.configure do |config|
29
+ config.use_transactional_fixtures = false
30
+ end
29
31
  end
30
- end
31
- rescue LoadError
32
- if defined? RSpec::Rails
33
- RSpec.configure do |config|
34
- config.use_transactional_fixtures = true
32
+ rescue LoadError
33
+ if defined? RSpec::Rails
34
+ RSpec.configure do |config|
35
+ config.use_transactional_fixtures = true
36
+ end
35
37
  end
36
38
  end
37
39
  end
@@ -1,7 +1,7 @@
1
1
  require 'active_record'
2
2
 
3
- rails_database_yaml_file_path = File.expand_path('../../config/database.yml', __FILE__)
4
- rails_engine_database_yaml_file_path = File.expand_path('../../dummy/config/database.yml', __FILE__)
3
+ rails_database_yaml_file_path = File.expand_path('../../config/database.yml', __FILE__)
4
+ rails_engine_database_yaml_file_path = File.expand_path('../dummy/config/database.yml', __FILE__)
5
5
 
6
6
  database_yaml_file_path = if File.exist? rails_engine_database_yaml_file_path
7
7
  rails_engine_database_yaml_file_path
@@ -19,5 +19,4 @@ Dir[File.expand_path('../support/**/*.rb', __FILE__)].each { |f| require f }
19
19
 
20
20
  RSpec.configure do |config|
21
21
  config.order = 'random'
22
- config.color = true
23
22
  end
@@ -0,0 +1,6 @@
1
+ RSpec.configure do |config|
2
+ config.color = true
3
+
4
+ config.add_formatter 'Fuubar'
5
+ config.add_formatter 'documentation', 'tmp/rspec.txt'
6
+ end
File without changes
@@ -1,2 +1,4 @@
1
1
  require 'rspectacular/support/focused'
2
2
  require 'rspectacular/support/pending'
3
+ require 'rspectacular/support/selenium'
4
+ require 'rspectacular/support/formatters'
@@ -1,3 +1,3 @@
1
1
  module RSpectacular
2
- VERSION = '0.5.0'
2
+ VERSION = '0.6.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspectacular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,24 +9,40 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-28 00:00:00.000000000 Z
12
+ date: 2013-02-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
16
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
17
  requirements:
19
18
  - - ~>
20
19
  - !ruby/object:Gem::Version
21
20
  version: '2.12'
22
- type: :runtime
21
+ none: false
23
22
  prerelease: false
23
+ type: :runtime
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
25
  requirements:
27
26
  - - ~>
28
27
  - !ruby/object:Gem::Version
29
28
  version: '2.12'
29
+ none: false
30
+ - !ruby/object:Gem::Dependency
31
+ name: fuubar
32
+ requirement: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ~>
35
+ - !ruby/object:Gem::Version
36
+ version: '1.0'
37
+ none: false
38
+ prerelease: false
39
+ type: :runtime
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ version: '1.0'
45
+ none: false
30
46
  description: We rock some RSpec configurations and matchers like it ain't nobody's
31
47
  bidnezz.
32
48
  email: accounts+git@thekompanee.com
@@ -59,7 +75,6 @@ files:
59
75
  - lib/rspectacular/plugins/omniauth.rb
60
76
  - lib/rspectacular/plugins/paypal.rb
61
77
  - lib/rspectacular/plugins/recaptcha.rb
62
- - lib/rspectacular/plugins/selenium.rb
63
78
  - lib/rspectacular/plugins/shoulda.rb
64
79
  - lib/rspectacular/plugins/timecop.rb
65
80
  - lib/rspectacular/plugins.rb
@@ -67,7 +82,9 @@ files:
67
82
  - lib/rspectacular/selectors.rb
68
83
  - lib/rspectacular/spec_helpers/active_record_spec_helper.rb
69
84
  - lib/rspectacular/support/focused.rb
85
+ - lib/rspectacular/support/formatters.rb
70
86
  - lib/rspectacular/support/pending.rb
87
+ - lib/rspectacular/support/selenium.rb
71
88
  - lib/rspectacular/support.rb
72
89
  - lib/rspectacular/version.rb
73
90
  - lib/rspectacular.rb
@@ -82,20 +99,20 @@ rdoc_options:
82
99
  require_paths:
83
100
  - lib
84
101
  required_ruby_version: !ruby/object:Gem::Requirement
85
- none: false
86
102
  requirements:
87
103
  - - ! '>='
88
104
  - !ruby/object:Gem::Version
89
105
  version: '0'
90
- required_rubygems_version: !ruby/object:Gem::Requirement
91
106
  none: false
107
+ required_rubygems_version: !ruby/object:Gem::Requirement
92
108
  requirements:
93
109
  - - ! '>='
94
110
  - !ruby/object:Gem::Version
95
111
  version: '0'
112
+ none: false
96
113
  requirements: []
97
114
  rubyforge_project: rspectacular
98
- rubygems_version: 1.8.24
115
+ rubygems_version: 1.8.25
99
116
  signing_key:
100
117
  specification_version: 3
101
118
  summary: RSpec Support And Matchers