suit 0.1.0 → 0.1.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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -3,17 +3,20 @@ $LOAD_PATH << File.dirname(__FILE__) unless $LOAD_PATH.include?(File.dirname(__F
3
3
  module Suit
4
4
  end
5
5
 
6
+ require 'rails'
7
+
6
8
  require 'rspec/core'
7
9
  require 'rspec/mocks'
8
10
  require 'rspec/expectations'
9
11
 
10
12
  require 'factory_girl'
11
- require 'suit_factories'
12
13
  require 'models/matchers'
13
14
  require 'controllers/matchers'
14
15
 
16
+ require 'suit/engine'
17
+
15
18
  RSpec.configure do |config|
16
19
  config.include(Suit::Models::Matchers)
17
- config.include(Suit::Controllers::Matchers)
20
+ config.include(Suit::Controllers::Matchers, :type => :controller)
18
21
  config.color_enabled = true
19
22
  end
@@ -0,0 +1,7 @@
1
+ module Suit
2
+ class Railtie < ::Rails::Engine
3
+ initializer "suit.factories", :after => "factory_girl.set_factory_paths" do
4
+ FactoryGirl.definition_file_paths.prepend(File.expand_path('../factories', __FILE__))
5
+ end
6
+ end
7
+ end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "suit"
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Justin Ball"]
12
- s.date = "2012-02-07"
12
+ s.date = "2012-02-10"
13
13
  s.description = "A collection of commonly used rspec matchers"
14
14
  s.email = "justinball@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -42,7 +42,8 @@ Gem::Specification.new do |s|
42
42
  "lib/models/matchers/scope_time_matchers.rb",
43
43
  "lib/models/matchers/suit_matcher_base.rb",
44
44
  "lib/suit.rb",
45
- "lib/suit_factories.rb",
45
+ "lib/suit/engine.rb",
46
+ "lib/suit/factories.rb",
46
47
  "spec/controllers/matchers/login_matcher_spec.rb",
47
48
  "spec/spec_helper.rb",
48
49
  "suit.gemspec"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Ball
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-02-07 00:00:00 Z
18
+ date: 2012-02-10 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  type: :runtime
@@ -161,7 +161,8 @@ files:
161
161
  - lib/models/matchers/scope_time_matchers.rb
162
162
  - lib/models/matchers/suit_matcher_base.rb
163
163
  - lib/suit.rb
164
- - lib/suit_factories.rb
164
+ - lib/suit/engine.rb
165
+ - lib/suit/factories.rb
165
166
  - spec/controllers/matchers/login_matcher_spec.rb
166
167
  - spec/spec_helper.rb
167
168
  - suit.gemspec