rails_magic_renamer 2.0.0.pre.alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/.ruby-version +1 -0
  4. data/.travis.yml +6 -0
  5. data/CHANGELOG +4 -0
  6. data/Gemfile +4 -0
  7. data/Gemfile.lock +173 -0
  8. data/Guardfile +11 -0
  9. data/Manifest +8 -0
  10. data/README.md +59 -0
  11. data/ROADMAP.md +60 -0
  12. data/Rakefile +2 -0
  13. data/lib/rails_magic_renamer.rb +343 -0
  14. data/lib/rails_magic_renamer/exceptions.rb +35 -0
  15. data/lib/rails_magic_renamer/version.rb +3 -0
  16. data/rails_magic_renamer.gemspec +36 -0
  17. data/spec/rails_helper.rb +26 -0
  18. data/spec/rails_magic_renamer_spec.rb +22 -0
  19. data/spec/spec_helper.rb +17 -0
  20. data/spec/support/sample_app_rails_4/.gitignore +19 -0
  21. data/spec/support/sample_app_rails_4/.rspec +2 -0
  22. data/spec/support/sample_app_rails_4/Gemfile +58 -0
  23. data/spec/support/sample_app_rails_4/Gemfile.lock +249 -0
  24. data/spec/support/sample_app_rails_4/Guardfile +53 -0
  25. data/spec/support/sample_app_rails_4/LICENSE +21 -0
  26. data/spec/support/sample_app_rails_4/README.md +25 -0
  27. data/spec/support/sample_app_rails_4/README.nitrous.md +20 -0
  28. data/spec/support/sample_app_rails_4/Rakefile +6 -0
  29. data/spec/support/sample_app_rails_4/app/assets/images/rails.png +0 -0
  30. data/spec/support/sample_app_rails_4/app/assets/javascripts/application.js +17 -0
  31. data/spec/support/sample_app_rails_4/app/assets/javascripts/sessions.js.coffee +3 -0
  32. data/spec/support/sample_app_rails_4/app/assets/javascripts/static_pages.js.coffee +3 -0
  33. data/spec/support/sample_app_rails_4/app/assets/javascripts/users.js.coffee +3 -0
  34. data/spec/support/sample_app_rails_4/app/assets/stylesheets/application.css +13 -0
  35. data/spec/support/sample_app_rails_4/app/assets/stylesheets/custom.css.scss +246 -0
  36. data/spec/support/sample_app_rails_4/app/assets/stylesheets/sessions.css.scss +3 -0
  37. data/spec/support/sample_app_rails_4/app/assets/stylesheets/static_pages.css.scss +3 -0
  38. data/spec/support/sample_app_rails_4/app/assets/stylesheets/users.css.scss +3 -0
  39. data/spec/support/sample_app_rails_4/app/controllers/application_controller.rb +6 -0
  40. data/spec/support/sample_app_rails_4/app/controllers/concerns/.keep +0 -0
  41. data/spec/support/sample_app_rails_4/app/controllers/microposts_controller.rb +31 -0
  42. data/spec/support/sample_app_rails_4/app/controllers/relationships_controller.rb +21 -0
  43. data/spec/support/sample_app_rails_4/app/controllers/sessions_controller.rb +21 -0
  44. data/spec/support/sample_app_rails_4/app/controllers/static_pages_controller.rb +18 -0
  45. data/spec/support/sample_app_rails_4/app/controllers/users_controller.rb +80 -0
  46. data/spec/support/sample_app_rails_4/app/helpers/application_helper.rb +12 -0
  47. data/spec/support/sample_app_rails_4/app/helpers/sessions_helper.rb +49 -0
  48. data/spec/support/sample_app_rails_4/app/helpers/static_pages_helper.rb +2 -0
  49. data/spec/support/sample_app_rails_4/app/helpers/users_helper.rb +10 -0
  50. data/spec/support/sample_app_rails_4/app/mailers/.keep +0 -0
  51. data/spec/support/sample_app_rails_4/app/models/.keep +0 -0
  52. data/spec/support/sample_app_rails_4/app/models/comment.rb +5 -0
  53. data/spec/support/sample_app_rails_4/app/models/concerns/.keep +0 -0
  54. data/spec/support/sample_app_rails_4/app/models/micropost.rb +14 -0
  55. data/spec/support/sample_app_rails_4/app/models/organisation.rb +3 -0
  56. data/spec/support/sample_app_rails_4/app/models/relationship.rb +6 -0
  57. data/spec/support/sample_app_rails_4/app/models/user.rb +57 -0
  58. data/spec/support/sample_app_rails_4/app/models/user_comment.rb +5 -0
  59. data/spec/support/sample_app_rails_4/app/views/layouts/_footer.html.erb +13 -0
  60. data/spec/support/sample_app_rails_4/app/views/layouts/_header.html.erb +31 -0
  61. data/spec/support/sample_app_rails_4/app/views/layouts/_shim.html.erb +3 -0
  62. data/spec/support/sample_app_rails_4/app/views/layouts/application.html.erb +22 -0
  63. data/spec/support/sample_app_rails_4/app/views/microposts/_micropost.html.erb +11 -0
  64. data/spec/support/sample_app_rails_4/app/views/relationships/create.js.erb +2 -0
  65. data/spec/support/sample_app_rails_4/app/views/relationships/destroy.js.erb +2 -0
  66. data/spec/support/sample_app_rails_4/app/views/sessions/new.html.erb +19 -0
  67. data/spec/support/sample_app_rails_4/app/views/shared/_error_messages.html.erb +12 -0
  68. data/spec/support/sample_app_rails_4/app/views/shared/_feed.html.erb +6 -0
  69. data/spec/support/sample_app_rails_4/app/views/shared/_feed_item.html.erb +15 -0
  70. data/spec/support/sample_app_rails_4/app/views/shared/_micropost_form.html.erb +7 -0
  71. data/spec/support/sample_app_rails_4/app/views/shared/_stats.html.erb +15 -0
  72. data/spec/support/sample_app_rails_4/app/views/shared/_user_info.html.erb +12 -0
  73. data/spec/support/sample_app_rails_4/app/views/static_pages/about.html.erb +8 -0
  74. data/spec/support/sample_app_rails_4/app/views/static_pages/contact.html.erb +6 -0
  75. data/spec/support/sample_app_rails_4/app/views/static_pages/help.html.erb +8 -0
  76. data/spec/support/sample_app_rails_4/app/views/static_pages/home.html.erb +34 -0
  77. data/spec/support/sample_app_rails_4/app/views/static_pages/show.html.erb +0 -0
  78. data/spec/support/sample_app_rails_4/app/views/users/_follow.html.erb +5 -0
  79. data/spec/support/sample_app_rails_4/app/views/users/_follow_form.html.erb +9 -0
  80. data/spec/support/sample_app_rails_4/app/views/users/_unfollow.html.erb +5 -0
  81. data/spec/support/sample_app_rails_4/app/views/users/_user.html.erb +8 -0
  82. data/spec/support/sample_app_rails_4/app/views/users/edit.html.erb +27 -0
  83. data/spec/support/sample_app_rails_4/app/views/users/index.html.erb +10 -0
  84. data/spec/support/sample_app_rails_4/app/views/users/new.html.erb +24 -0
  85. data/spec/support/sample_app_rails_4/app/views/users/show.html.erb +24 -0
  86. data/spec/support/sample_app_rails_4/app/views/users/show_follow.html.erb +30 -0
  87. data/spec/support/sample_app_rails_4/bin/bundle +3 -0
  88. data/spec/support/sample_app_rails_4/bin/rails +4 -0
  89. data/spec/support/sample_app_rails_4/bin/rake +4 -0
  90. data/spec/support/sample_app_rails_4/config.ru +4 -0
  91. data/spec/support/sample_app_rails_4/config/application.rb +31 -0
  92. data/spec/support/sample_app_rails_4/config/boot.rb +4 -0
  93. data/spec/support/sample_app_rails_4/config/cucumber.yml +8 -0
  94. data/spec/support/sample_app_rails_4/config/database.yml +12 -0
  95. data/spec/support/sample_app_rails_4/config/environment.rb +7 -0
  96. data/spec/support/sample_app_rails_4/config/environments/development.rb +27 -0
  97. data/spec/support/sample_app_rails_4/config/environments/production.rb +79 -0
  98. data/spec/support/sample_app_rails_4/config/environments/test.rb +39 -0
  99. data/spec/support/sample_app_rails_4/config/initializers/backtrace_silencers.rb +7 -0
  100. data/spec/support/sample_app_rails_4/config/initializers/filter_parameter_logging.rb +4 -0
  101. data/spec/support/sample_app_rails_4/config/initializers/inflections.rb +16 -0
  102. data/spec/support/sample_app_rails_4/config/initializers/mime_types.rb +5 -0
  103. data/spec/support/sample_app_rails_4/config/initializers/secret_token.rb +22 -0
  104. data/spec/support/sample_app_rails_4/config/initializers/session_store.rb +3 -0
  105. data/spec/support/sample_app_rails_4/config/initializers/wrap_parameters.rb +14 -0
  106. data/spec/support/sample_app_rails_4/config/locales/en.yml +23 -0
  107. data/spec/support/sample_app_rails_4/config/routes.rb +17 -0
  108. data/spec/support/sample_app_rails_4/db/development.sqlite3 +0 -0
  109. data/spec/support/sample_app_rails_4/db/migrate/20130311191400_create_users.rb +10 -0
  110. data/spec/support/sample_app_rails_4/db/migrate/20130311194153_add_index_to_users_email.rb +5 -0
  111. data/spec/support/sample_app_rails_4/db/migrate/20130311201841_add_password_digest_to_users.rb +5 -0
  112. data/spec/support/sample_app_rails_4/db/migrate/20130314184954_add_remember_token_to_users.rb +6 -0
  113. data/spec/support/sample_app_rails_4/db/migrate/20130315015932_add_admin_to_users.rb +5 -0
  114. data/spec/support/sample_app_rails_4/db/migrate/20130315175534_create_microposts.rb +11 -0
  115. data/spec/support/sample_app_rails_4/db/migrate/20130315230445_create_relationships.rb +13 -0
  116. data/spec/support/sample_app_rails_4/db/migrate/20160424113439_create_comments.rb +8 -0
  117. data/spec/support/sample_app_rails_4/db/migrate/20160424113451_create_user_comments.rb +8 -0
  118. data/spec/support/sample_app_rails_4/db/migrate/20160424114701_create_organisations.rb +8 -0
  119. data/spec/support/sample_app_rails_4/db/migrate/20160424114727_add_organisation_id_to_users.rb +5 -0
  120. data/spec/support/sample_app_rails_4/db/schema.rb +67 -0
  121. data/spec/support/sample_app_rails_4/db/seeds.rb +7 -0
  122. data/spec/support/sample_app_rails_4/db/test.sqlite3 +0 -0
  123. data/spec/support/sample_app_rails_4/factory_girl.rb +7 -0
  124. data/spec/support/sample_app_rails_4/features/signing_in.feature +13 -0
  125. data/spec/support/sample_app_rails_4/features/step_definitions/authentication_steps.rb +30 -0
  126. data/spec/support/sample_app_rails_4/features/support/env.rb +59 -0
  127. data/spec/support/sample_app_rails_4/lib/assets/.keep +0 -0
  128. data/spec/support/sample_app_rails_4/lib/tasks/.keep +0 -0
  129. data/spec/support/sample_app_rails_4/lib/tasks/cucumber.rake +65 -0
  130. data/spec/support/sample_app_rails_4/lib/tasks/sample_data.rake +42 -0
  131. data/spec/support/sample_app_rails_4/log/.keep +0 -0
  132. data/spec/support/sample_app_rails_4/public/404.html +27 -0
  133. data/spec/support/sample_app_rails_4/public/422.html +26 -0
  134. data/spec/support/sample_app_rails_4/public/500.html +26 -0
  135. data/spec/support/sample_app_rails_4/public/assets/application-4962059d8f80f9bb096692bacc29c4e8.css +5091 -0
  136. data/spec/support/sample_app_rails_4/public/assets/application-4962059d8f80f9bb096692bacc29c4e8.css.gz +0 -0
  137. data/spec/support/sample_app_rails_4/public/assets/application-eeb856e3fe2c8f879c91d0e81d59cb40.js +12952 -0
  138. data/spec/support/sample_app_rails_4/public/assets/application-eeb856e3fe2c8f879c91d0e81d59cb40.js.gz +0 -0
  139. data/spec/support/sample_app_rails_4/public/assets/glyphicons-halflings-c806376f05e4ccabe2c5315a8e95667c.png +0 -0
  140. data/spec/support/sample_app_rails_4/public/assets/glyphicons-halflings-white-62b67d9edee3db90d18833087f848d6e.png +0 -0
  141. data/spec/support/sample_app_rails_4/public/assets/manifest-802de9eb1c853769101852422b620883.json +1 -0
  142. data/spec/support/sample_app_rails_4/public/assets/rails-231a680f23887d9dd70710ea5efd3c62.png +0 -0
  143. data/spec/support/sample_app_rails_4/public/favicon.ico +0 -0
  144. data/spec/support/sample_app_rails_4/public/robots.txt +5 -0
  145. data/spec/support/sample_app_rails_4/script/cucumber +10 -0
  146. data/spec/support/sample_app_rails_4/spec/controllers/relationships_controller_spec.rb +42 -0
  147. data/spec/support/sample_app_rails_4/spec/factories.rb +17 -0
  148. data/spec/support/sample_app_rails_4/spec/features/authentication_pages_spec.rb +155 -0
  149. data/spec/support/sample_app_rails_4/spec/features/micropost_pages_spec.rb +45 -0
  150. data/spec/support/sample_app_rails_4/spec/features/static_pages_spec.rb +64 -0
  151. data/spec/support/sample_app_rails_4/spec/features/user_pages_spec.rb +239 -0
  152. data/spec/support/sample_app_rails_4/spec/helpers/application_helper_spec.rb +18 -0
  153. data/spec/support/sample_app_rails_4/spec/models/comments_spec.rb +5 -0
  154. data/spec/support/sample_app_rails_4/spec/models/micropost_spec.rb +30 -0
  155. data/spec/support/sample_app_rails_4/spec/models/organisation_spec.rb +5 -0
  156. data/spec/support/sample_app_rails_4/spec/models/relationship_spec.rb +36 -0
  157. data/spec/support/sample_app_rails_4/spec/models/user_comments_spec.rb +5 -0
  158. data/spec/support/sample_app_rails_4/spec/models/user_spec.rb +108 -0
  159. data/spec/support/sample_app_rails_4/spec/spec_helper.rb +57 -0
  160. data/spec/support/sample_app_rails_4/spec/support/utilities.rb +21 -0
  161. data/spec/support/sample_app_rails_4/vendor/assets/javascripts/.keep +0 -0
  162. data/spec/support/sample_app_rails_4/vendor/assets/stylesheets/.keep +0 -0
  163. data/tasks/rspec.rake +4 -0
  164. metadata +534 -0
@@ -0,0 +1,18 @@
1
+ require 'rails_helper'
2
+
3
+ describe ApplicationHelper do
4
+
5
+ describe "full_title" do
6
+ it "should include the page title" do
7
+ expect(full_title("foo")).to match(/foo/)
8
+ end
9
+
10
+ it "should include the base title" do
11
+ expect(full_title("foo")).to match(/^Ruby on Rails Tutorial Sample App/)
12
+ end
13
+
14
+ it "should not include a bar for the home page" do
15
+ expect(full_title("")).not_to match(/\|/)
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,5 @@
1
+ require 'spec_helper'
2
+
3
+ describe Comments do
4
+ pending "add some examples to (or delete) #{__FILE__}"
5
+ end
@@ -0,0 +1,30 @@
1
+ require 'rails_helper'
2
+ require 'rails_magic_renamer'
3
+ describe Micropost do
4
+
5
+ let(:user) { FactoryGirl.create(:user) }
6
+ before do
7
+ # This code is not idiomatically correct.
8
+ @micropost = Micropost.new(content: "Lorem ipsum", user_id: user.id)
9
+ end
10
+
11
+ subject { @micropost }
12
+
13
+ it { should respond_to(:content) }
14
+ it { should respond_to(:user_id) }
15
+
16
+ describe "when user_id is not present" do
17
+ before { @micropost.user_id = nil }
18
+ it { should_not be_valid }
19
+ end
20
+
21
+ describe "with blank content" do
22
+ before { @micropost.content = " " }
23
+ it { should_not be_valid }
24
+ end
25
+
26
+ describe "with content that is too long" do
27
+ before { @micropost.content = "a" * 141 }
28
+ it { should_not be_valid }
29
+ end
30
+ end
@@ -0,0 +1,5 @@
1
+ require 'spec_helper'
2
+
3
+ describe Organisation do
4
+ pending "add some examples to (or delete) #{__FILE__}"
5
+ end
@@ -0,0 +1,36 @@
1
+ require 'rails_helper'
2
+
3
+ describe Relationship do
4
+
5
+ let(:follower) { FactoryGirl.create(:user) }
6
+ let(:followed) { FactoryGirl.create(:user) }
7
+ let(:relationship) { follower.relationships.build(followed_id: followed.id) }
8
+
9
+ subject { relationship }
10
+
11
+ it { should be_valid }
12
+
13
+ describe "follower methods" do
14
+ it { should respond_to(:follower) }
15
+ it { should respond_to(:followed) }
16
+ describe "follower" do
17
+ subject { super().follower }
18
+ it { should == follower }
19
+ end
20
+
21
+ describe "followed" do
22
+ subject { super().followed }
23
+ it { should == followed }
24
+ end
25
+ end
26
+
27
+ describe "when followed id is not present" do
28
+ before { relationship.followed_id = nil }
29
+ it { should_not be_valid }
30
+ end
31
+
32
+ describe "when follower id is not present" do
33
+ before { relationship.follower_id = nil }
34
+ it { should_not be_valid }
35
+ end
36
+ end
@@ -0,0 +1,5 @@
1
+ require 'spec_helper'
2
+
3
+ describe UserComments do
4
+ pending "add some examples to (or delete) #{__FILE__}"
5
+ end
@@ -0,0 +1,108 @@
1
+ require 'rails_helper'
2
+
3
+ describe User do
4
+
5
+ before do
6
+ @user = User.new(name: "Example User", email: "user#{rand(100000)}@example.com",
7
+ password: "foobar", password_confirmation: "foobar")
8
+ end
9
+
10
+ subject { @user }
11
+
12
+ it { should respond_to(:name) }
13
+ it { should respond_to(:email) }
14
+ it { should respond_to(:password_digest) }
15
+ it { should respond_to(:password) }
16
+ it { should respond_to(:password_confirmation) }
17
+ it { should respond_to(:remember_token) }
18
+ it { should respond_to(:authenticate) }
19
+ it { should respond_to(:admin) }
20
+ it { should respond_to(:microposts) }
21
+ it { should respond_to(:feed) }
22
+ it { should respond_to(:relationships) }
23
+ it { should respond_to(:followed_users) }
24
+ it { should respond_to(:reverse_relationships) }
25
+ it { should respond_to(:followers) }
26
+ it { should respond_to(:following?) }
27
+ it { should respond_to(:follow!) }
28
+ it { should respond_to(:unfollow!) }
29
+
30
+ it { should be_valid }
31
+ it { should_not be_admin }
32
+
33
+ describe "with admin attribute set to 'true'" do
34
+ before do
35
+ @user.save!
36
+ @user.toggle!(:admin)
37
+ end
38
+
39
+ it { should be_admin }
40
+ end
41
+
42
+ describe "when name is not present" do
43
+ before { @user.name = " " }
44
+ it { should_not be_valid }
45
+ end
46
+
47
+ describe "when email is not present" do
48
+ before { @user.email = " " }
49
+ it { should_not be_valid }
50
+ end
51
+
52
+ describe "when name is too long" do
53
+ before { @user.name = "a" * 51 }
54
+ it { should_not be_valid }
55
+ end
56
+
57
+ describe "when email format is invalid" do
58
+ it "should be invalid" do
59
+ addresses = %w[user@foo,com user_at_foo.org example.user@foo.
60
+ foo@bar_baz.com foo@bar+baz.com foo@bar..com]
61
+ addresses.each do |invalid_address|
62
+ @user.email = invalid_address
63
+ expect(@user).not_to be_valid
64
+ end
65
+ end
66
+ end
67
+
68
+ describe "when email format is valid" do
69
+ it "should be valid" do
70
+ addresses = %w[user@foo.COM A_US-ER@f.b.org frst.lst@foo.jp a+b@baz.cn]
71
+ addresses.each do |valid_address|
72
+ @user.email = valid_address
73
+ expect(@user).to be_valid
74
+ end
75
+ end
76
+ end
77
+
78
+ describe "when email address is already taken" do
79
+ before do
80
+ user_with_same_email = @user.dup
81
+ user_with_same_email.email = @user.email.upcase
82
+ user_with_same_email.save
83
+ end
84
+
85
+ it { should_not be_valid }
86
+ end
87
+
88
+ describe "when password is not present" do
89
+ before do
90
+ @user = User.new(name: "Example User", email: "user1@example.com",
91
+ password: " ", password_confirmation: " ")
92
+ end
93
+ it { should_not be_valid }
94
+ end
95
+
96
+ describe "with a password that's too short" do
97
+ before { @user.password = @user.password_confirmation = "a" * 5 }
98
+ it { should be_invalid }
99
+ end
100
+
101
+ it "should be able to move a model" do
102
+ RailsMagicRenamer::Renamer.new("User", "Poster").rename
103
+ # undo changes
104
+ # `git checkout -- .`
105
+ # `git clean -f` # careful, this will remove all changes to gem dev progress
106
+ FileUtils.cd('../../../')
107
+ end
108
+ end
@@ -0,0 +1,57 @@
1
+ require 'rubygems'
2
+ require 'spork'
3
+
4
+ Spork.prefork do
5
+ ENV["RAILS_ENV"] ||= 'test'
6
+ require File.expand_path("../../config/environment", __FILE__)
7
+ require 'rspec/rails'
8
+ require 'rspec/autorun'
9
+
10
+ # Requires supporting ruby files with custom matchers and macros, etc,
11
+ # in spec/support/ and its subdirectories.
12
+ Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
13
+
14
+ # Checks for pending migrations before tests are run.
15
+ # If you are not using ActiveRecord, you can remove this line.
16
+ ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
17
+
18
+ RSpec.configure do |config|
19
+ # ## Mock Framework
20
+ #
21
+ # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
22
+ #
23
+ # config.mock_with :mocha
24
+ # config.mock_with :flexmock
25
+ # config.mock_with :rr
26
+
27
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
28
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
29
+
30
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
31
+ # examples within a transaction, remove the following line or assign false
32
+ # instead of true.
33
+ config.use_transactional_fixtures = true
34
+
35
+ # If true, the base class of anonymous controllers will be inferred
36
+ # automatically. This will be the default behavior in future versions of
37
+ # rspec-rails.
38
+ config.infer_base_class_for_anonymous_controllers = false
39
+
40
+ # Run specs in random order to surface order dependencies. If you find an
41
+ # order dependency and want to debug it, you can fix the order by providing
42
+ # the seed, which is printed after each run.
43
+ # --seed 1234
44
+ config.order = "random"
45
+ # Include the Capybara DSL so that specs in spec/requests still work.
46
+ config.include Capybara::DSL
47
+ # Disable the old-style object.should syntax.
48
+ config.expect_with :rspec do |c|
49
+ c.syntax = :expect
50
+ end
51
+ end
52
+ end
53
+
54
+ Spork.each_run do
55
+ # This code will be run each time you run your specs.
56
+
57
+ end
@@ -0,0 +1,21 @@
1
+ include ApplicationHelper
2
+
3
+ def sign_in(user, options={})
4
+ if options[:no_capybara]
5
+ # Sign in when not using Capybara as well.
6
+ remember_token = User.new_remember_token
7
+ cookies[:remember_token] = remember_token
8
+ user.update_attribute(:remember_token, User.digest(remember_token))
9
+ else
10
+ visit signin_path
11
+ fill_in "Email", with: user.email
12
+ fill_in "Password", with: user.password
13
+ click_button "Sign in"
14
+ end
15
+ end
16
+
17
+ RSpec::Matchers.define :have_error_message do |message|
18
+ match do |page|
19
+ expect(page).to have_selector('div.alert.alert-error', text: message)
20
+ end
21
+ end
data/tasks/rspec.rake ADDED
@@ -0,0 +1,4 @@
1
+ require 'rspec/core/rake_task'
2
+
3
+ RSpec::Core::RakeTask.new(:spec)
4
+ task :default => :spec
metadata ADDED
@@ -0,0 +1,534 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails_magic_renamer
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0.pre.alpha
5
+ platform: ruby
6
+ authors:
7
+ - Nick Dowse
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-05-07 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.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: guard
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: guard-rspec
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: rake
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: rspec
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: spork
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: factory_girl
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: factory_girl_rails
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: rspec-rails
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: capybara
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - '>='
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - '>='
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: codeclimate-test-reporter
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - '>='
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - '>='
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: sqlite3
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - '>='
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: rails
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - '='
186
+ - !ruby/object:Gem::Version
187
+ version: 4.0.13
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - '='
193
+ - !ruby/object:Gem::Version
194
+ version: 4.0.13
195
+ description: Rename rails models, magically. Pre-release, not production ready
196
+ email:
197
+ - nm.dowse@gmail.com
198
+ executables: []
199
+ extensions: []
200
+ extra_rdoc_files: []
201
+ files:
202
+ - .gitignore
203
+ - .ruby-version
204
+ - .travis.yml
205
+ - CHANGELOG
206
+ - Gemfile
207
+ - Gemfile.lock
208
+ - Guardfile
209
+ - Manifest
210
+ - README.md
211
+ - ROADMAP.md
212
+ - Rakefile
213
+ - lib/rails_magic_renamer.rb
214
+ - lib/rails_magic_renamer/exceptions.rb
215
+ - lib/rails_magic_renamer/version.rb
216
+ - rails_magic_renamer.gemspec
217
+ - spec/rails_helper.rb
218
+ - spec/rails_magic_renamer_spec.rb
219
+ - spec/spec_helper.rb
220
+ - spec/support/sample_app_rails_4/.gitignore
221
+ - spec/support/sample_app_rails_4/.rspec
222
+ - spec/support/sample_app_rails_4/Gemfile
223
+ - spec/support/sample_app_rails_4/Gemfile.lock
224
+ - spec/support/sample_app_rails_4/Guardfile
225
+ - spec/support/sample_app_rails_4/LICENSE
226
+ - spec/support/sample_app_rails_4/README.md
227
+ - spec/support/sample_app_rails_4/README.nitrous.md
228
+ - spec/support/sample_app_rails_4/Rakefile
229
+ - spec/support/sample_app_rails_4/app/assets/images/rails.png
230
+ - spec/support/sample_app_rails_4/app/assets/javascripts/application.js
231
+ - spec/support/sample_app_rails_4/app/assets/javascripts/sessions.js.coffee
232
+ - spec/support/sample_app_rails_4/app/assets/javascripts/static_pages.js.coffee
233
+ - spec/support/sample_app_rails_4/app/assets/javascripts/users.js.coffee
234
+ - spec/support/sample_app_rails_4/app/assets/stylesheets/application.css
235
+ - spec/support/sample_app_rails_4/app/assets/stylesheets/custom.css.scss
236
+ - spec/support/sample_app_rails_4/app/assets/stylesheets/sessions.css.scss
237
+ - spec/support/sample_app_rails_4/app/assets/stylesheets/static_pages.css.scss
238
+ - spec/support/sample_app_rails_4/app/assets/stylesheets/users.css.scss
239
+ - spec/support/sample_app_rails_4/app/controllers/application_controller.rb
240
+ - spec/support/sample_app_rails_4/app/controllers/concerns/.keep
241
+ - spec/support/sample_app_rails_4/app/controllers/microposts_controller.rb
242
+ - spec/support/sample_app_rails_4/app/controllers/relationships_controller.rb
243
+ - spec/support/sample_app_rails_4/app/controllers/sessions_controller.rb
244
+ - spec/support/sample_app_rails_4/app/controllers/static_pages_controller.rb
245
+ - spec/support/sample_app_rails_4/app/controllers/users_controller.rb
246
+ - spec/support/sample_app_rails_4/app/helpers/application_helper.rb
247
+ - spec/support/sample_app_rails_4/app/helpers/sessions_helper.rb
248
+ - spec/support/sample_app_rails_4/app/helpers/static_pages_helper.rb
249
+ - spec/support/sample_app_rails_4/app/helpers/users_helper.rb
250
+ - spec/support/sample_app_rails_4/app/mailers/.keep
251
+ - spec/support/sample_app_rails_4/app/models/.keep
252
+ - spec/support/sample_app_rails_4/app/models/comment.rb
253
+ - spec/support/sample_app_rails_4/app/models/concerns/.keep
254
+ - spec/support/sample_app_rails_4/app/models/micropost.rb
255
+ - spec/support/sample_app_rails_4/app/models/organisation.rb
256
+ - spec/support/sample_app_rails_4/app/models/relationship.rb
257
+ - spec/support/sample_app_rails_4/app/models/user.rb
258
+ - spec/support/sample_app_rails_4/app/models/user_comment.rb
259
+ - spec/support/sample_app_rails_4/app/views/layouts/_footer.html.erb
260
+ - spec/support/sample_app_rails_4/app/views/layouts/_header.html.erb
261
+ - spec/support/sample_app_rails_4/app/views/layouts/_shim.html.erb
262
+ - spec/support/sample_app_rails_4/app/views/layouts/application.html.erb
263
+ - spec/support/sample_app_rails_4/app/views/microposts/_micropost.html.erb
264
+ - spec/support/sample_app_rails_4/app/views/relationships/create.js.erb
265
+ - spec/support/sample_app_rails_4/app/views/relationships/destroy.js.erb
266
+ - spec/support/sample_app_rails_4/app/views/sessions/new.html.erb
267
+ - spec/support/sample_app_rails_4/app/views/shared/_error_messages.html.erb
268
+ - spec/support/sample_app_rails_4/app/views/shared/_feed.html.erb
269
+ - spec/support/sample_app_rails_4/app/views/shared/_feed_item.html.erb
270
+ - spec/support/sample_app_rails_4/app/views/shared/_micropost_form.html.erb
271
+ - spec/support/sample_app_rails_4/app/views/shared/_stats.html.erb
272
+ - spec/support/sample_app_rails_4/app/views/shared/_user_info.html.erb
273
+ - spec/support/sample_app_rails_4/app/views/static_pages/about.html.erb
274
+ - spec/support/sample_app_rails_4/app/views/static_pages/contact.html.erb
275
+ - spec/support/sample_app_rails_4/app/views/static_pages/help.html.erb
276
+ - spec/support/sample_app_rails_4/app/views/static_pages/home.html.erb
277
+ - spec/support/sample_app_rails_4/app/views/static_pages/show.html.erb
278
+ - spec/support/sample_app_rails_4/app/views/users/_follow.html.erb
279
+ - spec/support/sample_app_rails_4/app/views/users/_follow_form.html.erb
280
+ - spec/support/sample_app_rails_4/app/views/users/_unfollow.html.erb
281
+ - spec/support/sample_app_rails_4/app/views/users/_user.html.erb
282
+ - spec/support/sample_app_rails_4/app/views/users/edit.html.erb
283
+ - spec/support/sample_app_rails_4/app/views/users/index.html.erb
284
+ - spec/support/sample_app_rails_4/app/views/users/new.html.erb
285
+ - spec/support/sample_app_rails_4/app/views/users/show.html.erb
286
+ - spec/support/sample_app_rails_4/app/views/users/show_follow.html.erb
287
+ - spec/support/sample_app_rails_4/bin/bundle
288
+ - spec/support/sample_app_rails_4/bin/rails
289
+ - spec/support/sample_app_rails_4/bin/rake
290
+ - spec/support/sample_app_rails_4/config.ru
291
+ - spec/support/sample_app_rails_4/config/application.rb
292
+ - spec/support/sample_app_rails_4/config/boot.rb
293
+ - spec/support/sample_app_rails_4/config/cucumber.yml
294
+ - spec/support/sample_app_rails_4/config/database.yml
295
+ - spec/support/sample_app_rails_4/config/environment.rb
296
+ - spec/support/sample_app_rails_4/config/environments/development.rb
297
+ - spec/support/sample_app_rails_4/config/environments/production.rb
298
+ - spec/support/sample_app_rails_4/config/environments/test.rb
299
+ - spec/support/sample_app_rails_4/config/initializers/backtrace_silencers.rb
300
+ - spec/support/sample_app_rails_4/config/initializers/filter_parameter_logging.rb
301
+ - spec/support/sample_app_rails_4/config/initializers/inflections.rb
302
+ - spec/support/sample_app_rails_4/config/initializers/mime_types.rb
303
+ - spec/support/sample_app_rails_4/config/initializers/secret_token.rb
304
+ - spec/support/sample_app_rails_4/config/initializers/session_store.rb
305
+ - spec/support/sample_app_rails_4/config/initializers/wrap_parameters.rb
306
+ - spec/support/sample_app_rails_4/config/locales/en.yml
307
+ - spec/support/sample_app_rails_4/config/routes.rb
308
+ - spec/support/sample_app_rails_4/db/development.sqlite3
309
+ - spec/support/sample_app_rails_4/db/migrate/20130311191400_create_users.rb
310
+ - spec/support/sample_app_rails_4/db/migrate/20130311194153_add_index_to_users_email.rb
311
+ - spec/support/sample_app_rails_4/db/migrate/20130311201841_add_password_digest_to_users.rb
312
+ - spec/support/sample_app_rails_4/db/migrate/20130314184954_add_remember_token_to_users.rb
313
+ - spec/support/sample_app_rails_4/db/migrate/20130315015932_add_admin_to_users.rb
314
+ - spec/support/sample_app_rails_4/db/migrate/20130315175534_create_microposts.rb
315
+ - spec/support/sample_app_rails_4/db/migrate/20130315230445_create_relationships.rb
316
+ - spec/support/sample_app_rails_4/db/migrate/20160424113439_create_comments.rb
317
+ - spec/support/sample_app_rails_4/db/migrate/20160424113451_create_user_comments.rb
318
+ - spec/support/sample_app_rails_4/db/migrate/20160424114701_create_organisations.rb
319
+ - spec/support/sample_app_rails_4/db/migrate/20160424114727_add_organisation_id_to_users.rb
320
+ - spec/support/sample_app_rails_4/db/schema.rb
321
+ - spec/support/sample_app_rails_4/db/seeds.rb
322
+ - spec/support/sample_app_rails_4/db/test.sqlite3
323
+ - spec/support/sample_app_rails_4/factory_girl.rb
324
+ - spec/support/sample_app_rails_4/features/signing_in.feature
325
+ - spec/support/sample_app_rails_4/features/step_definitions/authentication_steps.rb
326
+ - spec/support/sample_app_rails_4/features/support/env.rb
327
+ - spec/support/sample_app_rails_4/lib/assets/.keep
328
+ - spec/support/sample_app_rails_4/lib/tasks/.keep
329
+ - spec/support/sample_app_rails_4/lib/tasks/cucumber.rake
330
+ - spec/support/sample_app_rails_4/lib/tasks/sample_data.rake
331
+ - spec/support/sample_app_rails_4/log/.keep
332
+ - spec/support/sample_app_rails_4/public/404.html
333
+ - spec/support/sample_app_rails_4/public/422.html
334
+ - spec/support/sample_app_rails_4/public/500.html
335
+ - spec/support/sample_app_rails_4/public/assets/application-4962059d8f80f9bb096692bacc29c4e8.css
336
+ - spec/support/sample_app_rails_4/public/assets/application-4962059d8f80f9bb096692bacc29c4e8.css.gz
337
+ - spec/support/sample_app_rails_4/public/assets/application-eeb856e3fe2c8f879c91d0e81d59cb40.js
338
+ - spec/support/sample_app_rails_4/public/assets/application-eeb856e3fe2c8f879c91d0e81d59cb40.js.gz
339
+ - spec/support/sample_app_rails_4/public/assets/glyphicons-halflings-c806376f05e4ccabe2c5315a8e95667c.png
340
+ - spec/support/sample_app_rails_4/public/assets/glyphicons-halflings-white-62b67d9edee3db90d18833087f848d6e.png
341
+ - spec/support/sample_app_rails_4/public/assets/manifest-802de9eb1c853769101852422b620883.json
342
+ - spec/support/sample_app_rails_4/public/assets/rails-231a680f23887d9dd70710ea5efd3c62.png
343
+ - spec/support/sample_app_rails_4/public/favicon.ico
344
+ - spec/support/sample_app_rails_4/public/robots.txt
345
+ - spec/support/sample_app_rails_4/script/cucumber
346
+ - spec/support/sample_app_rails_4/spec/controllers/relationships_controller_spec.rb
347
+ - spec/support/sample_app_rails_4/spec/factories.rb
348
+ - spec/support/sample_app_rails_4/spec/features/authentication_pages_spec.rb
349
+ - spec/support/sample_app_rails_4/spec/features/micropost_pages_spec.rb
350
+ - spec/support/sample_app_rails_4/spec/features/static_pages_spec.rb
351
+ - spec/support/sample_app_rails_4/spec/features/user_pages_spec.rb
352
+ - spec/support/sample_app_rails_4/spec/helpers/application_helper_spec.rb
353
+ - spec/support/sample_app_rails_4/spec/models/comments_spec.rb
354
+ - spec/support/sample_app_rails_4/spec/models/micropost_spec.rb
355
+ - spec/support/sample_app_rails_4/spec/models/organisation_spec.rb
356
+ - spec/support/sample_app_rails_4/spec/models/relationship_spec.rb
357
+ - spec/support/sample_app_rails_4/spec/models/user_comments_spec.rb
358
+ - spec/support/sample_app_rails_4/spec/models/user_spec.rb
359
+ - spec/support/sample_app_rails_4/spec/spec_helper.rb
360
+ - spec/support/sample_app_rails_4/spec/support/utilities.rb
361
+ - spec/support/sample_app_rails_4/vendor/assets/javascripts/.keep
362
+ - spec/support/sample_app_rails_4/vendor/assets/stylesheets/.keep
363
+ - tasks/rspec.rake
364
+ homepage: https://github.com/nickdowse/RailsMagicRenamer
365
+ licenses:
366
+ - MIT
367
+ metadata: {}
368
+ post_install_message:
369
+ rdoc_options: []
370
+ require_paths:
371
+ - lib
372
+ required_ruby_version: !ruby/object:Gem::Requirement
373
+ requirements:
374
+ - - '>='
375
+ - !ruby/object:Gem::Version
376
+ version: '0'
377
+ required_rubygems_version: !ruby/object:Gem::Requirement
378
+ requirements:
379
+ - - '>'
380
+ - !ruby/object:Gem::Version
381
+ version: 1.3.1
382
+ requirements: []
383
+ rubyforge_project:
384
+ rubygems_version: 2.2.2
385
+ signing_key:
386
+ specification_version: 4
387
+ summary: Rename rails models, magically
388
+ test_files:
389
+ - spec/rails_helper.rb
390
+ - spec/rails_magic_renamer_spec.rb
391
+ - spec/spec_helper.rb
392
+ - spec/support/sample_app_rails_4/.gitignore
393
+ - spec/support/sample_app_rails_4/.rspec
394
+ - spec/support/sample_app_rails_4/Gemfile
395
+ - spec/support/sample_app_rails_4/Gemfile.lock
396
+ - spec/support/sample_app_rails_4/Guardfile
397
+ - spec/support/sample_app_rails_4/LICENSE
398
+ - spec/support/sample_app_rails_4/README.md
399
+ - spec/support/sample_app_rails_4/README.nitrous.md
400
+ - spec/support/sample_app_rails_4/Rakefile
401
+ - spec/support/sample_app_rails_4/app/assets/images/rails.png
402
+ - spec/support/sample_app_rails_4/app/assets/javascripts/application.js
403
+ - spec/support/sample_app_rails_4/app/assets/javascripts/sessions.js.coffee
404
+ - spec/support/sample_app_rails_4/app/assets/javascripts/static_pages.js.coffee
405
+ - spec/support/sample_app_rails_4/app/assets/javascripts/users.js.coffee
406
+ - spec/support/sample_app_rails_4/app/assets/stylesheets/application.css
407
+ - spec/support/sample_app_rails_4/app/assets/stylesheets/custom.css.scss
408
+ - spec/support/sample_app_rails_4/app/assets/stylesheets/sessions.css.scss
409
+ - spec/support/sample_app_rails_4/app/assets/stylesheets/static_pages.css.scss
410
+ - spec/support/sample_app_rails_4/app/assets/stylesheets/users.css.scss
411
+ - spec/support/sample_app_rails_4/app/controllers/application_controller.rb
412
+ - spec/support/sample_app_rails_4/app/controllers/concerns/.keep
413
+ - spec/support/sample_app_rails_4/app/controllers/microposts_controller.rb
414
+ - spec/support/sample_app_rails_4/app/controllers/relationships_controller.rb
415
+ - spec/support/sample_app_rails_4/app/controllers/sessions_controller.rb
416
+ - spec/support/sample_app_rails_4/app/controllers/static_pages_controller.rb
417
+ - spec/support/sample_app_rails_4/app/controllers/users_controller.rb
418
+ - spec/support/sample_app_rails_4/app/helpers/application_helper.rb
419
+ - spec/support/sample_app_rails_4/app/helpers/sessions_helper.rb
420
+ - spec/support/sample_app_rails_4/app/helpers/static_pages_helper.rb
421
+ - spec/support/sample_app_rails_4/app/helpers/users_helper.rb
422
+ - spec/support/sample_app_rails_4/app/mailers/.keep
423
+ - spec/support/sample_app_rails_4/app/models/.keep
424
+ - spec/support/sample_app_rails_4/app/models/comment.rb
425
+ - spec/support/sample_app_rails_4/app/models/concerns/.keep
426
+ - spec/support/sample_app_rails_4/app/models/micropost.rb
427
+ - spec/support/sample_app_rails_4/app/models/organisation.rb
428
+ - spec/support/sample_app_rails_4/app/models/relationship.rb
429
+ - spec/support/sample_app_rails_4/app/models/user.rb
430
+ - spec/support/sample_app_rails_4/app/models/user_comment.rb
431
+ - spec/support/sample_app_rails_4/app/views/layouts/_footer.html.erb
432
+ - spec/support/sample_app_rails_4/app/views/layouts/_header.html.erb
433
+ - spec/support/sample_app_rails_4/app/views/layouts/_shim.html.erb
434
+ - spec/support/sample_app_rails_4/app/views/layouts/application.html.erb
435
+ - spec/support/sample_app_rails_4/app/views/microposts/_micropost.html.erb
436
+ - spec/support/sample_app_rails_4/app/views/relationships/create.js.erb
437
+ - spec/support/sample_app_rails_4/app/views/relationships/destroy.js.erb
438
+ - spec/support/sample_app_rails_4/app/views/sessions/new.html.erb
439
+ - spec/support/sample_app_rails_4/app/views/shared/_error_messages.html.erb
440
+ - spec/support/sample_app_rails_4/app/views/shared/_feed.html.erb
441
+ - spec/support/sample_app_rails_4/app/views/shared/_feed_item.html.erb
442
+ - spec/support/sample_app_rails_4/app/views/shared/_micropost_form.html.erb
443
+ - spec/support/sample_app_rails_4/app/views/shared/_stats.html.erb
444
+ - spec/support/sample_app_rails_4/app/views/shared/_user_info.html.erb
445
+ - spec/support/sample_app_rails_4/app/views/static_pages/about.html.erb
446
+ - spec/support/sample_app_rails_4/app/views/static_pages/contact.html.erb
447
+ - spec/support/sample_app_rails_4/app/views/static_pages/help.html.erb
448
+ - spec/support/sample_app_rails_4/app/views/static_pages/home.html.erb
449
+ - spec/support/sample_app_rails_4/app/views/static_pages/show.html.erb
450
+ - spec/support/sample_app_rails_4/app/views/users/_follow.html.erb
451
+ - spec/support/sample_app_rails_4/app/views/users/_follow_form.html.erb
452
+ - spec/support/sample_app_rails_4/app/views/users/_unfollow.html.erb
453
+ - spec/support/sample_app_rails_4/app/views/users/_user.html.erb
454
+ - spec/support/sample_app_rails_4/app/views/users/edit.html.erb
455
+ - spec/support/sample_app_rails_4/app/views/users/index.html.erb
456
+ - spec/support/sample_app_rails_4/app/views/users/new.html.erb
457
+ - spec/support/sample_app_rails_4/app/views/users/show.html.erb
458
+ - spec/support/sample_app_rails_4/app/views/users/show_follow.html.erb
459
+ - spec/support/sample_app_rails_4/bin/bundle
460
+ - spec/support/sample_app_rails_4/bin/rails
461
+ - spec/support/sample_app_rails_4/bin/rake
462
+ - spec/support/sample_app_rails_4/config.ru
463
+ - spec/support/sample_app_rails_4/config/application.rb
464
+ - spec/support/sample_app_rails_4/config/boot.rb
465
+ - spec/support/sample_app_rails_4/config/cucumber.yml
466
+ - spec/support/sample_app_rails_4/config/database.yml
467
+ - spec/support/sample_app_rails_4/config/environment.rb
468
+ - spec/support/sample_app_rails_4/config/environments/development.rb
469
+ - spec/support/sample_app_rails_4/config/environments/production.rb
470
+ - spec/support/sample_app_rails_4/config/environments/test.rb
471
+ - spec/support/sample_app_rails_4/config/initializers/backtrace_silencers.rb
472
+ - spec/support/sample_app_rails_4/config/initializers/filter_parameter_logging.rb
473
+ - spec/support/sample_app_rails_4/config/initializers/inflections.rb
474
+ - spec/support/sample_app_rails_4/config/initializers/mime_types.rb
475
+ - spec/support/sample_app_rails_4/config/initializers/secret_token.rb
476
+ - spec/support/sample_app_rails_4/config/initializers/session_store.rb
477
+ - spec/support/sample_app_rails_4/config/initializers/wrap_parameters.rb
478
+ - spec/support/sample_app_rails_4/config/locales/en.yml
479
+ - spec/support/sample_app_rails_4/config/routes.rb
480
+ - spec/support/sample_app_rails_4/db/development.sqlite3
481
+ - spec/support/sample_app_rails_4/db/migrate/20130311191400_create_users.rb
482
+ - spec/support/sample_app_rails_4/db/migrate/20130311194153_add_index_to_users_email.rb
483
+ - spec/support/sample_app_rails_4/db/migrate/20130311201841_add_password_digest_to_users.rb
484
+ - spec/support/sample_app_rails_4/db/migrate/20130314184954_add_remember_token_to_users.rb
485
+ - spec/support/sample_app_rails_4/db/migrate/20130315015932_add_admin_to_users.rb
486
+ - spec/support/sample_app_rails_4/db/migrate/20130315175534_create_microposts.rb
487
+ - spec/support/sample_app_rails_4/db/migrate/20130315230445_create_relationships.rb
488
+ - spec/support/sample_app_rails_4/db/migrate/20160424113439_create_comments.rb
489
+ - spec/support/sample_app_rails_4/db/migrate/20160424113451_create_user_comments.rb
490
+ - spec/support/sample_app_rails_4/db/migrate/20160424114701_create_organisations.rb
491
+ - spec/support/sample_app_rails_4/db/migrate/20160424114727_add_organisation_id_to_users.rb
492
+ - spec/support/sample_app_rails_4/db/schema.rb
493
+ - spec/support/sample_app_rails_4/db/seeds.rb
494
+ - spec/support/sample_app_rails_4/db/test.sqlite3
495
+ - spec/support/sample_app_rails_4/factory_girl.rb
496
+ - spec/support/sample_app_rails_4/features/signing_in.feature
497
+ - spec/support/sample_app_rails_4/features/step_definitions/authentication_steps.rb
498
+ - spec/support/sample_app_rails_4/features/support/env.rb
499
+ - spec/support/sample_app_rails_4/lib/assets/.keep
500
+ - spec/support/sample_app_rails_4/lib/tasks/.keep
501
+ - spec/support/sample_app_rails_4/lib/tasks/cucumber.rake
502
+ - spec/support/sample_app_rails_4/lib/tasks/sample_data.rake
503
+ - spec/support/sample_app_rails_4/log/.keep
504
+ - spec/support/sample_app_rails_4/public/404.html
505
+ - spec/support/sample_app_rails_4/public/422.html
506
+ - spec/support/sample_app_rails_4/public/500.html
507
+ - spec/support/sample_app_rails_4/public/assets/application-4962059d8f80f9bb096692bacc29c4e8.css
508
+ - spec/support/sample_app_rails_4/public/assets/application-4962059d8f80f9bb096692bacc29c4e8.css.gz
509
+ - spec/support/sample_app_rails_4/public/assets/application-eeb856e3fe2c8f879c91d0e81d59cb40.js
510
+ - spec/support/sample_app_rails_4/public/assets/application-eeb856e3fe2c8f879c91d0e81d59cb40.js.gz
511
+ - spec/support/sample_app_rails_4/public/assets/glyphicons-halflings-c806376f05e4ccabe2c5315a8e95667c.png
512
+ - spec/support/sample_app_rails_4/public/assets/glyphicons-halflings-white-62b67d9edee3db90d18833087f848d6e.png
513
+ - spec/support/sample_app_rails_4/public/assets/manifest-802de9eb1c853769101852422b620883.json
514
+ - spec/support/sample_app_rails_4/public/assets/rails-231a680f23887d9dd70710ea5efd3c62.png
515
+ - spec/support/sample_app_rails_4/public/favicon.ico
516
+ - spec/support/sample_app_rails_4/public/robots.txt
517
+ - spec/support/sample_app_rails_4/script/cucumber
518
+ - spec/support/sample_app_rails_4/spec/controllers/relationships_controller_spec.rb
519
+ - spec/support/sample_app_rails_4/spec/factories.rb
520
+ - spec/support/sample_app_rails_4/spec/features/authentication_pages_spec.rb
521
+ - spec/support/sample_app_rails_4/spec/features/micropost_pages_spec.rb
522
+ - spec/support/sample_app_rails_4/spec/features/static_pages_spec.rb
523
+ - spec/support/sample_app_rails_4/spec/features/user_pages_spec.rb
524
+ - spec/support/sample_app_rails_4/spec/helpers/application_helper_spec.rb
525
+ - spec/support/sample_app_rails_4/spec/models/comments_spec.rb
526
+ - spec/support/sample_app_rails_4/spec/models/micropost_spec.rb
527
+ - spec/support/sample_app_rails_4/spec/models/organisation_spec.rb
528
+ - spec/support/sample_app_rails_4/spec/models/relationship_spec.rb
529
+ - spec/support/sample_app_rails_4/spec/models/user_comments_spec.rb
530
+ - spec/support/sample_app_rails_4/spec/models/user_spec.rb
531
+ - spec/support/sample_app_rails_4/spec/spec_helper.rb
532
+ - spec/support/sample_app_rails_4/spec/support/utilities.rb
533
+ - spec/support/sample_app_rails_4/vendor/assets/javascripts/.keep
534
+ - spec/support/sample_app_rails_4/vendor/assets/stylesheets/.keep