rails-app-spec 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. data/README.markdown +1 -1
  2. data/Rakefile +6 -10
  3. data/VERSION +1 -1
  4. data/lib/rails-app-spec.rb +1 -2
  5. data/lib/rails_app_spec/matchers/artifact/have_artifact.rb +3 -3
  6. data/lib/rails_app_spec/matchers/artifact/have_artifact_file.rb +1 -1
  7. data/lib/rails_app_spec/matchers/artifact/have_artifacts.rb +3 -3
  8. data/lib/rails_app_spec/matchers/artifact/have_rails_artifact_file.rb +2 -2
  9. data/lib/rails_app_spec/matchers/artifact/have_rails_artifact_files.rb +3 -3
  10. data/lib/rails_app_spec/matchers/artifact/shared/artifact_file_helper.rb +1 -1
  11. data/lib/rails_app_spec/matchers/directory/have_artifact_dirs.rb +2 -2
  12. data/lib/rails_app_spec/matchers/directory/have_rails_dir.rb +2 -2
  13. data/lib/rails_app_spec/matchers/directory/have_rails_dirs.rb +1 -1
  14. data/lib/rails_app_spec/matchers/file/have_rails_file.rb +2 -2
  15. data/lib/rails_app_spec/matchers/file/have_rails_files.rb +2 -2
  16. data/lib/rails_app_spec/matchers/special/have_app_config.rb +3 -3
  17. data/lib/rails_app_spec/matchers/special/have_gem.rb +2 -2
  18. data/lib/rails_app_spec/matchers/special/have_gems.rb +2 -2
  19. data/rails-app-spec.gemspec +15 -28
  20. data/spec/rails_app_spec/matchers/artifact/controller_spec.rb +1 -1
  21. data/spec/rails_app_spec/matchers/artifact/core/have_artifacts_spec.rb +1 -1
  22. data/spec/rails_app_spec/matchers/artifact/helper_spec.rb +1 -1
  23. data/spec/rails_app_spec/matchers/artifact/mailer_spec.rb +1 -1
  24. data/spec/rails_app_spec/matchers/artifact/model_mongoid_spec.rb +1 -1
  25. data/spec/rails_app_spec/matchers/artifact/model_spec.rb +1 -1
  26. data/spec/rails_app_spec/matchers/artifact/observer_spec.rb +1 -1
  27. data/spec/rails_app_spec/matchers/directory/have_rails_dir_spec.rb +1 -1
  28. data/spec/rails_app_spec/matchers/directory/have_rails_dirs_spec.rb +1 -1
  29. data/spec/rails_app_spec/matchers/file/have_rails_file_spec.rb +1 -1
  30. data/spec/rails_app_spec/matchers/file/have_rails_files_spec.rb +1 -1
  31. data/spec/rails_app_spec/matchers/special/have_app_config_spec.rb +1 -1
  32. data/spec/rails_app_spec/matchers/special/have_gem_spec.rb +1 -1
  33. data/spec/rails_app_spec/matchers/special/have_gems_spec.rb +1 -1
  34. data/spec/spec_helper.rb +13 -3
  35. metadata +61 -154
data/README.markdown CHANGED
@@ -12,7 +12,7 @@ See specs for more details on how to use the API.
12
12
 
13
13
  Usage example (teaser):
14
14
  <pre>
15
- require 'rails3_assist'
15
+ require 'rails_assist'
16
16
  require 'rails-app-spec'
17
17
 
18
18
  Rails.root.should have_controller :account do |content|
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ require 'psych'
2
+
1
3
  begin
2
4
  require 'jeweler'
3
5
  Jeweler::Tasks.new do |gem|
@@ -7,17 +9,11 @@ begin
7
9
  gem.email = "kmandrup@gmail.com"
8
10
  gem.homepage = "http://github.com/kristianmandrup/rails-app-spec"
9
11
  gem.authors = ["Kristian Mandrup"]
10
- gem.add_development_dependency "rspec", ">= 2.0.1"
11
-
12
- gem.add_dependency "rspec", ">= 2.0.1"
12
+ gem.add_dependency "rspec", ">= 2.4.1"
13
13
  gem.add_dependency "code-spec", ">= 0.2.9"
14
- gem.add_dependency "file-spec", ">= 0.1.4"
15
-
16
- gem.add_dependency "activesupport", ">= 3.0.1"
17
- gem.add_dependency "require_all", "~> 1.2.0"
18
- gem.add_dependency "rails3_artifactor", ">= 0.3.1"
19
- gem.add_dependency "rails3_assist", ">= 0.3.0"
20
- gem.add_dependency "sugar-high", ">= 0.3.0"
14
+ gem.add_dependency "file-spec", "~> 0.2.0"
15
+ gem.add_dependency 'migration_assist', "~> 0.2.0"
16
+ gem.add_dependency "rails_artifactor", ">= 0.3.3"
21
17
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
22
18
  end
23
19
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
@@ -1,5 +1,4 @@
1
- require 'rails3_artifactor'
2
- # require 'rails3_assist'
1
+ require 'rails_artifactor'
3
2
  require 'active_support/inflector'
4
3
  require 'require_all'
5
4
  require 'code-spec'
@@ -3,13 +3,13 @@
3
3
  module RSpec::RailsApp::Artifact
4
4
  module Matchers
5
5
  class HaveArtifact < RSpec::RubyContentMatcher
6
- extend Rails3::Assist::UseMacro
6
+ extend RailsAssist::UseMacro
7
7
  use_helpers :file
8
8
 
9
9
  include Artifact::Matcher::Helper
10
10
 
11
11
  def initialize(name, artifact_type)
12
- extend "Rails3::Assist::Artifact::#{artifact_type.to_s.camelize}".constantize
12
+ extend "RailsAssist::Artifact::#{artifact_type.to_s.camelize}".constantize
13
13
 
14
14
  parse_name name
15
15
  parse_type artifact_type
@@ -41,7 +41,7 @@ module RSpec::RailsApp::Artifact
41
41
  end
42
42
  alias_method :contain_artifact, :have_artifact
43
43
 
44
- (::Rails3::Assist.artifacts - [:view]).each do |name|
44
+ (::RailsAssist.artifacts - [:view]).each do |name|
45
45
  class_eval %{
46
46
  def have_#{name} relative
47
47
  have_artifact relative, :#{name}
@@ -1,7 +1,7 @@
1
1
  module RSpec::RailsApp::ArtifactFile
2
2
  module Matchers
3
3
 
4
- (::Rails3::Assist.artifacts - [:view]).each do |name|
4
+ (::RailsAssist.artifacts - [:view]).each do |name|
5
5
  class_eval %{
6
6
  def have_#{name}_file relative
7
7
  have_rails_artifact_file relative, :#{name}
@@ -2,7 +2,7 @@
2
2
  module RSpec::RailsApp::Artifact
3
3
  module Matchers
4
4
  class HaveArtifacts < RSpec::RubyContentMatcher
5
- extend Rails3::Assist::UseMacro
5
+ extend RailsAssist::UseMacro
6
6
  use_helpers :file
7
7
 
8
8
  include ArtifactFile::Matcher::Helper
@@ -11,7 +11,7 @@ module RSpec::RailsApp::Artifact
11
11
  attr_reader :names
12
12
 
13
13
  def initialize(artifact_type, *names)
14
- extend "Rails3::Assist::Artifact::#{artifact_type.to_s.camelize}".constantize
14
+ extend "RailsAssist::Artifact::#{artifact_type.to_s.camelize}".constantize
15
15
  @names = names
16
16
  parse_type artifact_type
17
17
  if artifact_type == :view
@@ -69,7 +69,7 @@ module RSpec::RailsApp::Artifact
69
69
  end
70
70
  alias_method :contain_artifact, :have_artifact
71
71
 
72
- (::Rails3::Assist.artifacts - [:view]).each do |name|
72
+ (::RailsAssist.artifacts - [:view]).each do |name|
73
73
  plural_name = name.to_s.pluralize
74
74
  class_eval %{
75
75
  def have_#{plural_name} *names
@@ -1,7 +1,7 @@
1
1
  module RSpec::RailsApp::ArtifactFile
2
2
  module Matchers
3
3
  class HaveRailsArtifactFile
4
- extend Rails3::Assist::UseMacro
4
+ extend RailsAssist::UseMacro
5
5
  use_helpers :file
6
6
 
7
7
  attr_accessor :name, :artifact_type, :artifact_name
@@ -12,7 +12,7 @@ module RSpec::RailsApp::ArtifactFile
12
12
  def initialize(name, artifact_type = nil)
13
13
  self.artifact_type = artifact_type
14
14
 
15
- extend "Rails3::Assist::Artifact::#{artifact_type.to_s.camelize}".constantize
15
+ extend "RailsAssist::Artifact::#{artifact_type.to_s.camelize}".constantize
16
16
 
17
17
  if name.kind_of? Hash
18
18
  set_view name
@@ -1,14 +1,14 @@
1
1
  module RSpec::RailsApp::ArtifactFile
2
2
  module Matchers
3
3
  class HaveRailsArtifactFiles
4
- extend Rails3::Assist::UseMacro
4
+ extend RailsAssist::UseMacro
5
5
  use_helpers :file
6
6
 
7
7
  include ::ArtifactFile::Matcher::Helper
8
8
 
9
9
  def initialize(artifact_type, *names)
10
10
  @names = names
11
- extend "Rails3::Assist::Artifact::#{artifact_type.to_s.camelize}".constantize
11
+ extend "RailsAssist::Artifact::#{artifact_type.to_s.camelize}".constantize
12
12
 
13
13
  handle_view artifact_type, names
14
14
 
@@ -37,7 +37,7 @@ module RSpec::RailsApp::ArtifactFile
37
37
  end
38
38
  alias_method :contain_rails_artifact_files, :have_rails_artifact_files
39
39
 
40
- (::Rails3::Assist.artifacts - [:view]).each do |name|
40
+ (::RailsAssist.artifacts - [:view]).each do |name|
41
41
  class_eval %{
42
42
  def have_#{name}_files *names
43
43
  have_rails_artifact_files :#{name}, *names
@@ -5,7 +5,7 @@ end
5
5
 
6
6
  module ArtifactFile::Matcher
7
7
  module Helper
8
- include ::Rails3::Assist::Artifact::View::FileName
8
+ include ::RailsAssist::Artifact::View::FileName
9
9
 
10
10
  attr_reader :name, :artifact_type, :artifact_name
11
11
  attr_reader :folder, :action, :view_ext
@@ -1,7 +1,7 @@
1
1
  module RSpec::RailsApp::Directory
2
2
  module Matchers
3
3
  class HaveArtifactDirs
4
- extend Rails3::Assist::UseMacro
4
+ extend RailsAssist::UseMacro
5
5
  use_helper :directory
6
6
 
7
7
  attr_accessor :artifact_type, :dir, :dir_name, :dirs
@@ -34,7 +34,7 @@ module RSpec::RailsApp::Directory
34
34
  end
35
35
  end
36
36
 
37
- ::Rails3::Assist::Directory::App.app_directories.each do |name|
37
+ ::RailsAssist::Directory::App.app_directories.each do |name|
38
38
  class_eval %{
39
39
  def have_#{name}_dirs *names
40
40
  have_artifact_dirs :#{name}, *names
@@ -1,7 +1,7 @@
1
1
  module RSpec::RailsApp::Directory
2
2
  module Matchers
3
3
  class HaveRailsDir
4
- extend Rails3::Assist::UseMacro
4
+ extend RailsAssist::UseMacro
5
5
  use_helper :directory
6
6
 
7
7
  attr_accessor :dir, :type
@@ -28,7 +28,7 @@ module RSpec::RailsApp::Directory
28
28
  HaveRailsDir.new(type)
29
29
  end
30
30
 
31
- (Rails3::Assist.artifacts + Rails3::Assist.specials(:all) + Rails3::Assist::Directory::Root.root_directories).each do |name|
31
+ (RailsAssist.artifacts + RailsAssist.specials(:all) + RailsAssist::Directory::Root.root_directories).each do |name|
32
32
  class_eval %{
33
33
  def have_#{name}_dir
34
34
  have_rails_dir :#{name}
@@ -1,7 +1,7 @@
1
1
  module RSpec::RailsApp::Directory
2
2
  module Matchers
3
3
  class HaveRailsDirs
4
- extend Rails3::Assist::UseMacro
4
+ extend RailsAssist::UseMacro
5
5
  use_helper :directory
6
6
 
7
7
  attr_accessor :dir, :dir_name, :dirs
@@ -3,8 +3,8 @@ require 'rails_app_spec/matchers/file/rails_file_helper'
3
3
  module RSpec::RailsApp::File
4
4
  module Matchers
5
5
  class HaveRailsFile
6
- include ::Rails3::Assist::Artifact
7
- include ::Rails3::Assist::File
6
+ include ::RailsAssist::Artifact
7
+ include ::RailsAssist::File
8
8
  include RailsFile::Matcher::Helper
9
9
 
10
10
  def initialize(name, type = nil)
@@ -3,8 +3,8 @@ require 'rails_app_spec/matchers/file/rails_file_helper'
3
3
  module RSpec::RailsApp::File
4
4
  module Matchers
5
5
  class HaveRailsFiles
6
- include ::Rails3::Assist::Artifact
7
- include ::Rails3::Assist::File
6
+ include ::RailsAssist::Artifact
7
+ include ::RailsAssist::File
8
8
  include RailsFile::Matcher::Helper
9
9
 
10
10
  attr_reader :names
@@ -4,11 +4,11 @@
4
4
  module RSpec::RailsApp::Content
5
5
  module Matchers
6
6
  class HaveAppConfig
7
- extend Rails3::Assist::UseMacro
7
+ extend RailsAssist::UseMacro
8
8
  use_helpers :file
9
9
 
10
- include Rails3::Assist::File::Special
11
- include Rails3::Assist::File::Application
10
+ include RailsAssist::File::Special
11
+ include RailsAssist::File::Application
12
12
 
13
13
  attr_reader :left_side, :right_side, :operator
14
14
 
@@ -6,10 +6,10 @@ require 'sugar-high/kind_of'
6
6
  module RSpec::RailsApp::Content
7
7
  module Matchers
8
8
  class HaveGem
9
- extend Rails3::Assist::UseMacro
9
+ extend RailsAssist::UseMacro
10
10
  use_helpers :file
11
11
 
12
- include Rails3::Assist::File::Special
12
+ include RailsAssist::File::Special
13
13
 
14
14
  attr_reader :name, :version, :options
15
15
 
@@ -7,10 +7,10 @@ require 'sugar-high/array'
7
7
  module RSpec::RailsApp::Content
8
8
  module Matchers
9
9
  class HaveGems
10
- extend Rails3::Assist::UseMacro
10
+ extend RailsAssist::UseMacro
11
11
  use_helpers :file
12
12
 
13
- include Rails3::Assist::File::Special
13
+ include RailsAssist::File::Special
14
14
 
15
15
  attr_reader :names, :name
16
16
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rails-app-spec}
8
- s.version = "0.3.2"
8
+ s.version = "0.3.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kristian Mandrup"]
12
- s.date = %q{2010-11-30}
12
+ s.date = %q{2011-03-04}
13
13
  s.description = %q{RSpec 2 matchers to help spec the structure and content of your Rails 3 app}
14
14
  s.email = %q{kmandrup@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -69,7 +69,7 @@ Gem::Specification.new do |s|
69
69
  ]
70
70
  s.homepage = %q{http://github.com/kristianmandrup/rails-app-spec}
71
71
  s.require_paths = ["lib"]
72
- s.rubygems_version = %q{1.3.7}
72
+ s.rubygems_version = %q{1.6.1}
73
73
  s.summary = %q{Spec the structure of your Rails 3 app}
74
74
  s.test_files = [
75
75
  "spec/rails_app_spec/matchers/artifact/controller_spec.rb",
@@ -93,40 +93,27 @@ Gem::Specification.new do |s|
93
93
  ]
94
94
 
95
95
  if s.respond_to? :specification_version then
96
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
97
96
  s.specification_version = 3
98
97
 
99
98
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
100
- s.add_development_dependency(%q<rspec>, [">= 2.0.1"])
101
- s.add_runtime_dependency(%q<rspec>, [">= 2.0.1"])
99
+ s.add_runtime_dependency(%q<rspec>, [">= 2.4.1"])
102
100
  s.add_runtime_dependency(%q<code-spec>, [">= 0.2.9"])
103
- s.add_runtime_dependency(%q<file-spec>, [">= 0.1.4"])
104
- s.add_runtime_dependency(%q<activesupport>, [">= 3.0.1"])
105
- s.add_runtime_dependency(%q<require_all>, ["~> 1.2.0"])
106
- s.add_runtime_dependency(%q<rails3_artifactor>, [">= 0.3.1"])
107
- s.add_runtime_dependency(%q<rails3_assist>, [">= 0.3.0"])
108
- s.add_runtime_dependency(%q<sugar-high>, [">= 0.3.0"])
101
+ s.add_runtime_dependency(%q<file-spec>, ["~> 0.2.0"])
102
+ s.add_runtime_dependency(%q<migration_assist>, ["~> 0.2.0"])
103
+ s.add_runtime_dependency(%q<rails_artifactor>, [">= 0.3.3"])
109
104
  else
110
- s.add_dependency(%q<rspec>, [">= 2.0.1"])
111
- s.add_dependency(%q<rspec>, [">= 2.0.1"])
105
+ s.add_dependency(%q<rspec>, [">= 2.4.1"])
112
106
  s.add_dependency(%q<code-spec>, [">= 0.2.9"])
113
- s.add_dependency(%q<file-spec>, [">= 0.1.4"])
114
- s.add_dependency(%q<activesupport>, [">= 3.0.1"])
115
- s.add_dependency(%q<require_all>, ["~> 1.2.0"])
116
- s.add_dependency(%q<rails3_artifactor>, [">= 0.3.1"])
117
- s.add_dependency(%q<rails3_assist>, [">= 0.3.0"])
118
- s.add_dependency(%q<sugar-high>, [">= 0.3.0"])
107
+ s.add_dependency(%q<file-spec>, ["~> 0.2.0"])
108
+ s.add_dependency(%q<migration_assist>, ["~> 0.2.0"])
109
+ s.add_dependency(%q<rails_artifactor>, [">= 0.3.3"])
119
110
  end
120
111
  else
121
- s.add_dependency(%q<rspec>, [">= 2.0.1"])
122
- s.add_dependency(%q<rspec>, [">= 2.0.1"])
112
+ s.add_dependency(%q<rspec>, [">= 2.4.1"])
123
113
  s.add_dependency(%q<code-spec>, [">= 0.2.9"])
124
- s.add_dependency(%q<file-spec>, [">= 0.1.4"])
125
- s.add_dependency(%q<activesupport>, [">= 3.0.1"])
126
- s.add_dependency(%q<require_all>, ["~> 1.2.0"])
127
- s.add_dependency(%q<rails3_artifactor>, [">= 0.3.1"])
128
- s.add_dependency(%q<rails3_assist>, [">= 0.3.0"])
129
- s.add_dependency(%q<sugar-high>, [">= 0.3.0"])
114
+ s.add_dependency(%q<file-spec>, ["~> 0.2.0"])
115
+ s.add_dependency(%q<migration_assist>, ["~> 0.2.0"])
116
+ s.add_dependency(%q<rails_artifactor>, [">= 0.3.3"])
130
117
  end
131
118
  end
132
119
 
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- root_dir = Rails3::Assist::Directory.rails_root
3
+ root_dir = RailsAssist::Directory.rails_root
4
4
 
5
5
  describe 'controller' do
6
6
  use_helpers :controller, :app
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- root_dir = Rails3::Assist::Directory.rails_root
3
+ root_dir = RailsAssist::Directory.rails_root
4
4
 
5
5
  describe 'controller' do
6
6
  use_orm :none
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- root_dir = Rails3::Assist::Directory.rails_root
3
+ root_dir = RailsAssist::Directory.rails_root
4
4
 
5
5
  describe 'rails helper' do
6
6
  use_helper :helper
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- root_dir = Rails3::Assist::Directory.rails_root
3
+ root_dir = RailsAssist::Directory.rails_root
4
4
 
5
5
  describe 'mailer helper' do
6
6
  load_helper :mailer
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- root_dir = Rails3::Assist::Directory.rails_root
3
+ root_dir = RailsAssist::Directory.rails_root
4
4
 
5
5
  describe 'model helper' do
6
6
  use_orm :mongoid
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- root_dir = Rails3::Assist::Directory.rails_root
3
+ root_dir = RailsAssist::Directory.rails_root
4
4
 
5
5
  describe 'model helper' do
6
6
  use_orm :active_record
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- root_dir = Rails3::Assist::Directory.rails_root
3
+ root_dir = RailsAssist::Directory.rails_root
4
4
 
5
5
  describe 'observer helper' do
6
6
  use_helper :observer
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- root_dir = Rails3::Assist::Directory.rails_root
3
+ root_dir = RailsAssist::Directory.rails_root
4
4
 
5
5
  describe 'Rails matcher: have_rails_dir' do
6
6
  use_helpers :directory, :app, :controller
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- root_dir = Rails3::Assist::Directory.rails_root
3
+ root_dir = RailsAssist::Directory.rails_root
4
4
 
5
5
  describe 'Rails matcher: have_rails_dirs' do
6
6
  use_helpers :directory, :app
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- root_dir = Rails3::Assist::Directory.rails_root
3
+ root_dir = RailsAssist::Directory.rails_root
4
4
 
5
5
  describe 'Rails matcher: have_rails_file' do
6
6
  use_helpers :file, :controller, :permit
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- root_dir = Rails3::Assist::Directory.rails_root
3
+ root_dir = RailsAssist::Directory.rails_root
4
4
 
5
5
  describe 'Rails matcher: have_rails_files' do
6
6
  use_helpers :files, :file, :controller, :view
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- root_dir = Rails3::Assist::Directory.rails_root
3
+ root_dir = RailsAssist::Directory.rails_root
4
4
 
5
5
  describe 'Rails matcher: have_app_config' do
6
6
  use_helpers :directory, :file, :app
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- root = Rails3::Assist::Directory.rails_root
3
+ root = RailsAssist::Directory.rails_root
4
4
 
5
5
  describe 'Rails matcher: have_gem' do
6
6
  use_helpers :directory, :file
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- root = Rails3::Assist::Directory.rails_root
3
+ root = RailsAssist::Directory.rails_root
4
4
 
5
5
  describe 'Rails matcher: have_gems' do
6
6
  use_helpers :directory, :file
data/spec/spec_helper.rb CHANGED
@@ -1,11 +1,21 @@
1
1
  require 'rspec/core'
2
- require 'rails3_artifactor'
3
- require 'rails3_artifactor/rspec'
2
+ require 'rails_artifactor'
3
+ require 'rails_artifactor/rspec'
4
4
  require 'rails-app-spec'
5
5
 
6
+ # require 'generator-spec'
7
+ #
8
+ # RSpec::Generator.configure do |config|
9
+ # config.debug = false
10
+ # config.remove_temp_dir = false # true
11
+ # config.default_rails_root(__FILE__)
12
+ # config.lib = File.dirname(__FILE__) + '/../lib'
13
+ # config.logger = :stdout
14
+ # end
15
+
6
16
  RSpec.configure do |config|
7
17
  config.before do
8
- Rails3::Assist::Directory.rails_root = temp_dir('tmp_rails')
18
+ RailsAssist::Directory.rails_root = temp_dir('tmp_rails')
9
19
  end
10
20
 
11
21
  config.after do
metadata CHANGED
@@ -1,167 +1,81 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rails-app-spec
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 3
8
- - 2
9
- version: 0.3.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.3
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Kristian Mandrup
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2010-11-30 00:00:00 +01:00
12
+ date: 2011-03-04 00:00:00.000000000 +01:00
18
13
  default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
21
16
  name: rspec
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 2
30
- - 0
31
- - 1
32
- version: 2.0.1
33
- type: :development
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: rspec
37
- prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
17
+ requirement: &2161823060 !ruby/object:Gem::Requirement
39
18
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- segments:
44
- - 2
45
- - 0
46
- - 1
47
- version: 2.0.1
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: 2.4.1
48
23
  type: :runtime
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: code-spec
52
24
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
25
+ version_requirements: *2161823060
26
+ - !ruby/object:Gem::Dependency
27
+ name: code-spec
28
+ requirement: &2161821600 !ruby/object:Gem::Requirement
54
29
  none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- segments:
59
- - 0
60
- - 2
61
- - 9
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
62
33
  version: 0.2.9
63
34
  type: :runtime
64
- version_requirements: *id003
65
- - !ruby/object:Gem::Dependency
66
- name: file-spec
67
- prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
69
- none: false
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- segments:
74
- - 0
75
- - 1
76
- - 4
77
- version: 0.1.4
78
- type: :runtime
79
- version_requirements: *id004
80
- - !ruby/object:Gem::Dependency
81
- name: activesupport
82
- prerelease: false
83
- requirement: &id005 !ruby/object:Gem::Requirement
84
- none: false
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- segments:
89
- - 3
90
- - 0
91
- - 1
92
- version: 3.0.1
93
- type: :runtime
94
- version_requirements: *id005
95
- - !ruby/object:Gem::Dependency
96
- name: require_all
97
35
  prerelease: false
98
- requirement: &id006 !ruby/object:Gem::Requirement
36
+ version_requirements: *2161821600
37
+ - !ruby/object:Gem::Dependency
38
+ name: file-spec
39
+ requirement: &2161820580 !ruby/object:Gem::Requirement
99
40
  none: false
100
- requirements:
41
+ requirements:
101
42
  - - ~>
102
- - !ruby/object:Gem::Version
103
- segments:
104
- - 1
105
- - 2
106
- - 0
107
- version: 1.2.0
43
+ - !ruby/object:Gem::Version
44
+ version: 0.2.0
108
45
  type: :runtime
109
- version_requirements: *id006
110
- - !ruby/object:Gem::Dependency
111
- name: rails3_artifactor
112
46
  prerelease: false
113
- requirement: &id007 !ruby/object:Gem::Requirement
47
+ version_requirements: *2161820580
48
+ - !ruby/object:Gem::Dependency
49
+ name: migration_assist
50
+ requirement: &2161819500 !ruby/object:Gem::Requirement
114
51
  none: false
115
- requirements:
116
- - - ">="
117
- - !ruby/object:Gem::Version
118
- segments:
119
- - 0
120
- - 3
121
- - 1
122
- version: 0.3.1
52
+ requirements:
53
+ - - ~>
54
+ - !ruby/object:Gem::Version
55
+ version: 0.2.0
123
56
  type: :runtime
124
- version_requirements: *id007
125
- - !ruby/object:Gem::Dependency
126
- name: rails3_assist
127
57
  prerelease: false
128
- requirement: &id008 !ruby/object:Gem::Requirement
58
+ version_requirements: *2161819500
59
+ - !ruby/object:Gem::Dependency
60
+ name: rails_artifactor
61
+ requirement: &2161818460 !ruby/object:Gem::Requirement
129
62
  none: false
130
- requirements:
131
- - - ">="
132
- - !ruby/object:Gem::Version
133
- segments:
134
- - 0
135
- - 3
136
- - 0
137
- version: 0.3.0
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: 0.3.3
138
67
  type: :runtime
139
- version_requirements: *id008
140
- - !ruby/object:Gem::Dependency
141
- name: sugar-high
142
68
  prerelease: false
143
- requirement: &id009 !ruby/object:Gem::Requirement
144
- none: false
145
- requirements:
146
- - - ">="
147
- - !ruby/object:Gem::Version
148
- segments:
149
- - 0
150
- - 3
151
- - 0
152
- version: 0.3.0
153
- type: :runtime
154
- version_requirements: *id009
155
- description: RSpec 2 matchers to help spec the structure and content of your Rails 3 app
69
+ version_requirements: *2161818460
70
+ description: RSpec 2 matchers to help spec the structure and content of your Rails
71
+ 3 app
156
72
  email: kmandrup@gmail.com
157
73
  executables: []
158
-
159
74
  extensions: []
160
-
161
- extra_rdoc_files:
75
+ extra_rdoc_files:
162
76
  - LICENSE
163
77
  - README.markdown
164
- files:
78
+ files:
165
79
  - .document
166
80
  - .rspec
167
81
  - LICENSE
@@ -214,36 +128,29 @@ files:
214
128
  has_rdoc: true
215
129
  homepage: http://github.com/kristianmandrup/rails-app-spec
216
130
  licenses: []
217
-
218
131
  post_install_message:
219
132
  rdoc_options: []
220
-
221
- require_paths:
133
+ require_paths:
222
134
  - lib
223
- required_ruby_version: !ruby/object:Gem::Requirement
135
+ required_ruby_version: !ruby/object:Gem::Requirement
224
136
  none: false
225
- requirements:
226
- - - ">="
227
- - !ruby/object:Gem::Version
228
- segments:
229
- - 0
230
- version: "0"
231
- required_rubygems_version: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - ! '>='
139
+ - !ruby/object:Gem::Version
140
+ version: '0'
141
+ required_rubygems_version: !ruby/object:Gem::Requirement
232
142
  none: false
233
- requirements:
234
- - - ">="
235
- - !ruby/object:Gem::Version
236
- segments:
237
- - 0
238
- version: "0"
143
+ requirements:
144
+ - - ! '>='
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
239
147
  requirements: []
240
-
241
148
  rubyforge_project:
242
- rubygems_version: 1.3.7
149
+ rubygems_version: 1.6.1
243
150
  signing_key:
244
151
  specification_version: 3
245
152
  summary: Spec the structure of your Rails 3 app
246
- test_files:
153
+ test_files:
247
154
  - spec/rails_app_spec/matchers/artifact/controller_spec.rb
248
155
  - spec/rails_app_spec/matchers/artifact/core/have_artifacts_spec.rb
249
156
  - spec/rails_app_spec/matchers/artifact/helper_spec.rb