magic_lamp 1.8.1 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/magic_lamp/application_controller.rb +2 -0
- data/app/controllers/magic_lamp/fixtures_controller.rb +3 -1
- data/app/controllers/magic_lamp/lint_controller.rb +2 -0
- data/app/helpers/magic_lamp/application_helper.rb +2 -0
- data/config/routes.rb +2 -0
- data/lib/magic_lamp.rb +4 -2
- data/lib/magic_lamp/callbacks.rb +4 -2
- data/lib/magic_lamp/configuration.rb +2 -0
- data/lib/magic_lamp/constants.rb +3 -1
- data/lib/magic_lamp/defaults_manager.rb +2 -0
- data/lib/magic_lamp/engine.rb +2 -0
- data/lib/magic_lamp/fixture_creator.rb +2 -0
- data/lib/magic_lamp/render_catcher.rb +2 -0
- data/lib/magic_lamp/version.rb +3 -1
- data/lib/tasks/fixture_names.rb +2 -0
- data/lib/tasks/lint.rb +8 -6
- data/spec/controllers/magic_lamp/fixtures_controller_spec.rb +8 -6
- data/spec/controllers/magic_lamp/lint_controller_spec.rb +3 -1
- data/spec/dummy/config/environments/test.rb +7 -1
- data/spec/lib/all_fixtures_spec.rb +2 -0
- data/spec/lib/configuration_spec.rb +2 -0
- data/spec/lib/defaults_manager_spec.rb +2 -0
- data/spec/lib/fixture_creator_spec.rb +5 -5
- data/spec/lib/magic_lamp_spec.rb +5 -3
- data/spec/lib/render_catcher_spec.rb +2 -0
- data/spec/rails_helper.rb +16 -1
- data/spec/spec_helper.rb +2 -0
- data/spec/support/callbacks_examples.rb +3 -1
- data/spec/tasks/fixture_names_task_spec.rb +2 -0
- data/spec/tasks/lint_task_spec.rb +6 -4
- data/spec/teaspoon_env.rb +2 -0
- metadata +57 -57
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40bbc31ff9ba2cad2f34cdd6741581b282dc6972
|
4
|
+
data.tar.gz: d35cf568e824182fe5ef423fef44c5cce6dfcfc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21df3892d21f61deaddd2863860cede42bdf5b81222c4b83846e508e3144ddd6f7f52e72e07ff1897702931f221b90be1035fd2e23f6480e3f9f8f9f4ff3d182
|
7
|
+
data.tar.gz: 6e31058c19a9482b8bd1efcca02cb7a131ac2dddebdb85e38ade7e55ee247e4331eba1b07bb21578ed89be95b60598e30a84bf87aa30fcd4cc13882bd412546a
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module MagicLamp
|
2
4
|
class FixturesController < MagicLamp::ApplicationController
|
3
5
|
ERRORS = [
|
@@ -9,7 +11,7 @@ module MagicLamp
|
|
9
11
|
MagicLamp::DoubleRenderError
|
10
12
|
].map(&:name)
|
11
13
|
|
12
|
-
RENDER_TYPE = Rails::VERSION::MAJOR
|
14
|
+
RENDER_TYPE = Rails::VERSION::MAJOR >= 5 ? :plain : :text
|
13
15
|
|
14
16
|
rescue_from(*ERRORS) do |exception, message = exception.message|
|
15
17
|
error_message_with_bactrace = parse_error(exception, message)
|
data/config/routes.rb
CHANGED
data/lib/magic_lamp.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require "method_source"
|
2
4
|
|
3
5
|
require "magic_lamp/engine"
|
@@ -38,7 +40,7 @@ module MagicLamp
|
|
38
40
|
|
39
41
|
def configure(&block)
|
40
42
|
raise_missing_block_error(block, __method__)
|
41
|
-
|
43
|
+
yield(configuration)
|
42
44
|
end
|
43
45
|
|
44
46
|
def define(options = {}, &block)
|
@@ -116,7 +118,7 @@ module MagicLamp
|
|
116
118
|
end
|
117
119
|
|
118
120
|
def add_error_if_error(error_hash, key, &block)
|
119
|
-
|
121
|
+
yield
|
120
122
|
rescue => e
|
121
123
|
error_hash[key] = compose_error(e)
|
122
124
|
end
|
data/lib/magic_lamp/callbacks.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module MagicLamp
|
2
4
|
module Callbacks
|
3
5
|
attr_accessor :configuration
|
@@ -20,7 +22,7 @@ module MagicLamp
|
|
20
22
|
end
|
21
23
|
|
22
24
|
execute_before_each_callback
|
23
|
-
value =
|
25
|
+
value = yield
|
24
26
|
execute_after_each_callback
|
25
27
|
value
|
26
28
|
end
|
@@ -29,7 +31,7 @@ module MagicLamp
|
|
29
31
|
|
30
32
|
def execute_callback(type)
|
31
33
|
callback = configuration.send("#{type}_each_proc")
|
32
|
-
callback.call
|
34
|
+
callback.call if callback
|
33
35
|
end
|
34
36
|
end
|
35
37
|
end
|
data/lib/magic_lamp/constants.rb
CHANGED
@@ -1,10 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module MagicLamp
|
2
4
|
APPLICATION = "application"
|
3
5
|
APPLICATION_MATCHER = Regexp.compile("(\/#{APPLICATION}|#{APPLICATION}\/|#{APPLICATION})")
|
4
6
|
EMPTY_STRING = ""
|
5
7
|
FORWARD_SLASH = "/"
|
6
8
|
LAMP = "_lamp"
|
7
|
-
REGISTER_FIXTURE_ALIASES = [
|
9
|
+
REGISTER_FIXTURE_ALIASES = %i[register fixture rub wish].freeze
|
8
10
|
SPEC = "spec"
|
9
11
|
STARS = "**"
|
10
12
|
TEST = "test"
|
data/lib/magic_lamp/engine.rb
CHANGED
data/lib/magic_lamp/version.rb
CHANGED
data/lib/tasks/fixture_names.rb
CHANGED
data/lib/tasks/lint.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
MagicLamp::Genie.rake_tasks do
|
2
4
|
namespace :magic_lamp do
|
3
5
|
desc "Generates all Magic Lamp fixtures and displays errors for debugging"
|
@@ -14,7 +16,7 @@ MagicLamp::Genie.rake_tasks do
|
|
14
16
|
puts "\n#{errors[:config_file_load]}"
|
15
17
|
end
|
16
18
|
|
17
|
-
[
|
19
|
+
%i[before_each after_each].each do |callback|
|
18
20
|
if errors[callback].present?
|
19
21
|
puts "Executing #{callback} failed with:"
|
20
22
|
puts "\n#{errors[callback]}"
|
@@ -61,11 +63,11 @@ MagicLamp::Genie.rake_tasks do
|
|
61
63
|
puts "File: #{render_block.source_location.join(':')}"
|
62
64
|
puts "Controller: #{fixture_info[:controller]}"
|
63
65
|
|
64
|
-
if fixture_info[:extend].present?
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
66
|
+
extensions = if fixture_info[:extend].present?
|
67
|
+
fixture_info[:extend].join(", ")
|
68
|
+
else
|
69
|
+
"None"
|
70
|
+
end
|
69
71
|
|
70
72
|
puts "Extensions: #{extensions}"
|
71
73
|
puts ""
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require "rails_helper"
|
2
4
|
|
3
5
|
module MagicLamp
|
@@ -10,18 +12,18 @@ module MagicLamp
|
|
10
12
|
|
11
13
|
it "outputs the error and the message to the server log" do
|
12
14
|
expect(controller.logger).to receive(:error) do |error_message|
|
13
|
-
expect(error_message).to match(
|
15
|
+
expect(error_message).to match(%r{message\n\s\s\s\s.*magic_lamp/}m)
|
14
16
|
end
|
15
|
-
get :show, name: "orders/baz"
|
17
|
+
make_request :get, :show, name: "orders/baz"
|
16
18
|
end
|
17
19
|
|
18
20
|
it "renders the error as text for the client side" do
|
19
|
-
get :show, name: "orders/baz"
|
21
|
+
make_request :get, :show, name: "orders/baz"
|
20
22
|
expect(response.body).to eq("message")
|
21
23
|
end
|
22
24
|
|
23
25
|
it "renders a 400" do
|
24
|
-
get :show, name: "orders/baz"
|
26
|
+
make_request :get, :show, name: "orders/baz"
|
25
27
|
expect(response.status).to eq(400)
|
26
28
|
end
|
27
29
|
end
|
@@ -64,7 +66,7 @@ module MagicLamp
|
|
64
66
|
|
65
67
|
describe "#show" do
|
66
68
|
it "renders the specified template" do
|
67
|
-
get :show, name: "orders/foo"
|
69
|
+
make_request :get, :show, name: "orders/foo"
|
68
70
|
expect(response.body).to eq("foo\n")
|
69
71
|
end
|
70
72
|
end
|
@@ -76,7 +78,7 @@ module MagicLamp
|
|
76
78
|
let(:form_fixture) { parsed_response["orders/form"] }
|
77
79
|
|
78
80
|
it "returns a json hash of all registered fixtures" do
|
79
|
-
get :index
|
81
|
+
make_request :get, :index
|
80
82
|
expect(foo_fixture).to eq("foo\n")
|
81
83
|
expect(bar_fixture).to eq("bar\n")
|
82
84
|
expect(form_fixture).to match(/<div class="actions"/)
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require "rails_helper"
|
2
4
|
|
3
5
|
module MagicLamp
|
@@ -45,7 +47,7 @@ module MagicLamp
|
|
45
47
|
end
|
46
48
|
|
47
49
|
it "assigns config_file_load_error" do
|
48
|
-
expect(assigns(:config_errors).keys).to match_array([
|
50
|
+
expect(assigns(:config_errors).keys).to match_array(%i[before_each after_each])
|
49
51
|
end
|
50
52
|
end
|
51
53
|
end
|
@@ -23,11 +23,17 @@ application.configure do
|
|
23
23
|
# Configure static asset server for tests with Cache-Control for performance.
|
24
24
|
if Rails::VERSION::STRING.to_f == 4.0
|
25
25
|
config.serve_static_assets = true
|
26
|
+
elsif Rails::VERSION::MAJOR == 5
|
27
|
+
config.public_file_server.enabled = true
|
26
28
|
else
|
27
29
|
config.serve_static_files = true
|
28
30
|
end
|
29
31
|
|
30
|
-
|
32
|
+
if Rails::VERSION::MAJOR == 5
|
33
|
+
config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
|
34
|
+
else
|
35
|
+
config.static_cache_control = 'public, max-age=3600'
|
36
|
+
end
|
31
37
|
|
32
38
|
# Show full error reports and disable caching.
|
33
39
|
config.consider_all_requests_local = true
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require "rails_helper"
|
2
4
|
|
3
5
|
describe MagicLamp::FixtureCreator do
|
@@ -109,13 +111,11 @@ describe MagicLamp::FixtureCreator do
|
|
109
111
|
|
110
112
|
context "contoller" do
|
111
113
|
module Foo
|
112
|
-
def foo_module_method
|
113
|
-
end
|
114
|
+
def foo_module_method; end
|
114
115
|
end
|
115
116
|
|
116
117
|
module Bar
|
117
|
-
def bar_module_method
|
118
|
-
end
|
118
|
+
def bar_module_method; end
|
119
119
|
end
|
120
120
|
|
121
121
|
let(:controller) { subject.new_controller(OrdersController, [Foo, Bar]) { params[:foo] = "bar" } }
|
@@ -145,7 +145,7 @@ describe MagicLamp::FixtureCreator do
|
|
145
145
|
context "stubbed controller#render" do
|
146
146
|
it "passes its arguments to the fixture creator at render arguments" do
|
147
147
|
controller.render :foo, :bar
|
148
|
-
expect(subject.render_arguments).to eq([
|
148
|
+
expect(subject.render_arguments).to eq(%i[foo bar])
|
149
149
|
end
|
150
150
|
|
151
151
|
it "raises an error when called twice" do
|
data/spec/lib/magic_lamp_spec.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require "rails_helper"
|
2
4
|
|
3
5
|
describe MagicLamp do
|
@@ -304,7 +306,7 @@ describe MagicLamp do
|
|
304
306
|
describe "#generate_fixture" do
|
305
307
|
let(:block) { proc { render :foo } }
|
306
308
|
let(:fixture_name) { "foo_test" }
|
307
|
-
let(:extensions) { 3
|
309
|
+
let(:extensions) { Array.new(3) { Module.new } }
|
308
310
|
|
309
311
|
before do
|
310
312
|
subject.registered_fixtures[fixture_name] = {
|
@@ -382,7 +384,7 @@ describe MagicLamp do
|
|
382
384
|
context "callbacks" do
|
383
385
|
let!(:error_proc) { proc { raise "Nope" } }
|
384
386
|
|
385
|
-
[
|
387
|
+
%i[before after].each do |callback_type|
|
386
388
|
it "returns a hash that with the errored #{callback_type} callback information" do
|
387
389
|
expect_any_instance_of(MagicLamp::Configuration).to receive("#{callback_type}_each_proc").and_return(error_proc)
|
388
390
|
result = subject.lint_config
|
@@ -433,7 +435,7 @@ describe MagicLamp do
|
|
433
435
|
foo_result = result["foo"]
|
434
436
|
bar_result = result["orders/bar"]
|
435
437
|
|
436
|
-
[
|
438
|
+
%i[render_block extend controller].each do |key|
|
437
439
|
expect(foo_result[key]).to eq(subject.registered_fixtures["foo"][key])
|
438
440
|
expect(bar_result[key]).to eq(subject.registered_fixtures["orders/bar"][key])
|
439
441
|
end
|
data/spec/rails_helper.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
4
|
ENV["RAILS_ENV"] ||= "test"
|
3
5
|
require "spec_helper"
|
@@ -19,6 +21,18 @@ ActiveRecord::Migration.maintain_test_schema! if Rails::VERSION::STRING.to_f !=
|
|
19
21
|
|
20
22
|
Rails.application.load_tasks
|
21
23
|
|
24
|
+
module ControllerTestHelpers
|
25
|
+
if ::Rails::VERSION::MAJOR >= 5
|
26
|
+
def make_request(type, action_name, params = {})
|
27
|
+
public_send(type, action_name, params: params)
|
28
|
+
end
|
29
|
+
else
|
30
|
+
def make_request(type, action_name, params = {})
|
31
|
+
public_send(type, action_name, params)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
22
36
|
RSpec.configure do |config|
|
23
37
|
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
24
38
|
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
@@ -43,7 +57,8 @@ RSpec.configure do |config|
|
|
43
57
|
# https://relishapp.com/rspec/rspec-rails/docs
|
44
58
|
config.infer_spec_type_from_file_location!
|
45
59
|
|
46
|
-
|
60
|
+
config.include ControllerTestHelpers, type: :controller
|
61
|
+
if Rails::VERSION::MAJOR >= 5
|
47
62
|
config.include Rails::Controller::Testing::TestProcess
|
48
63
|
config.include Rails::Controller::Testing::TemplateAssertions
|
49
64
|
config.include Rails::Controller::Testing::Integration
|
data/spec/spec_helper.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# This file was generated by the `rails generate rspec:install` command. Conventionally, all
|
2
4
|
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
5
|
# The generated `.rspec` file contains `--require spec_helper` which will cause this
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
shared_examples "it has callbacks" do
|
2
4
|
subject { described_class.new(MagicLamp::Configuration.new) }
|
3
5
|
|
@@ -13,7 +15,7 @@ shared_examples "it has callbacks" do
|
|
13
15
|
end
|
14
16
|
end
|
15
17
|
|
16
|
-
[
|
18
|
+
%i[after before].each do |type|
|
17
19
|
describe "#execute_before_each_callback" do
|
18
20
|
it "calls the type each callback" do
|
19
21
|
dummy = double
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: false
|
2
|
+
|
1
3
|
require "rails_helper"
|
2
4
|
|
3
5
|
module CatchOutput
|
@@ -55,7 +57,7 @@ describe "magic_lamp:lint:config" do
|
|
55
57
|
expect(output).to match("RuntimeError: Nope")
|
56
58
|
end
|
57
59
|
|
58
|
-
[
|
60
|
+
%i[before after].each do |callback_type|
|
59
61
|
it "tells us if the #{callback_type}_each callback is broken" do
|
60
62
|
expect_any_instance_of(MagicLamp::Configuration).to receive("#{callback_type}_each_proc").and_return(error_proc)
|
61
63
|
|
@@ -153,12 +155,12 @@ describe "magic_lamp:lint:fixtures" do
|
|
153
155
|
it "tells us which fixtures are broken" do
|
154
156
|
expect(output).to match(/the following fixtures are broken/i)
|
155
157
|
expect(output).to match(/Name: "foo"/)
|
156
|
-
expect(output).to match(
|
158
|
+
expect(output).to match(%r{Name: "orders\/bar"})
|
157
159
|
end
|
158
160
|
|
159
161
|
it "displays the file the fixture is in" do
|
160
|
-
expect(output).to match(
|
161
|
-
expect(output).to match(
|
162
|
+
expect(output).to match(%r{File: .+\/broken_fixtures.rb:7})
|
163
|
+
expect(output).to match(%r{File: .+\/broken_fixtures.rb:13})
|
162
164
|
end
|
163
165
|
|
164
166
|
it "displays the broken fixture's code" do
|
data/spec/teaspoon_env.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: magic_lamp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Crismali
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -182,16 +182,16 @@ dependencies:
|
|
182
182
|
name: rubocop
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- - "
|
185
|
+
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
187
|
+
version: 0.48.1
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- - "
|
192
|
+
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version:
|
194
|
+
version: 0.48.1
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: selenium-webdriver
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -237,7 +237,7 @@ dependencies:
|
|
237
237
|
description: MagicLamp provides an easy way to get your Rails templates into your
|
238
238
|
JavaScript specs.
|
239
239
|
email:
|
240
|
-
- michael
|
240
|
+
- michael@crismali.com
|
241
241
|
executables: []
|
242
242
|
extensions: []
|
243
243
|
extra_rdoc_files: []
|
@@ -371,87 +371,87 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
371
371
|
version: '0'
|
372
372
|
requirements: []
|
373
373
|
rubyforge_project:
|
374
|
-
rubygems_version: 2.
|
374
|
+
rubygems_version: 2.5.2
|
375
375
|
signing_key:
|
376
376
|
specification_version: 4
|
377
377
|
summary: Makes sure your JavaScript tests break when if your templates change.
|
378
378
|
test_files:
|
379
|
-
- spec/
|
380
|
-
- spec/
|
381
|
-
- spec/
|
382
|
-
- spec/dummy/app/
|
379
|
+
- spec/spec_helper.rb
|
380
|
+
- spec/tasks/fixture_names_task_spec.rb
|
381
|
+
- spec/tasks/lint_task_spec.rb
|
382
|
+
- spec/dummy/app/models/order.rb
|
383
383
|
- spec/dummy/app/controllers/application_controller.rb
|
384
384
|
- spec/dummy/app/controllers/orders_controller.rb
|
385
|
-
- spec/dummy/app/helpers/application_helper.rb
|
386
|
-
- spec/dummy/app/helpers/orders_helper.rb
|
387
|
-
- spec/dummy/app/models/order.rb
|
388
385
|
- spec/dummy/app/views/layouts/application.html.erb
|
389
|
-
- spec/dummy/app/views/orders/_form.html.erb
|
390
|
-
- spec/dummy/app/views/orders/_symbol_form_for.html.erb
|
391
|
-
- spec/dummy/app/views/orders/bar.html.erb
|
392
|
-
- spec/dummy/app/views/orders/edit.html.erb
|
393
|
-
- spec/dummy/app/views/orders/foo.html.erb
|
394
386
|
- spec/dummy/app/views/orders/index.html.erb
|
387
|
+
- spec/dummy/app/views/orders/bar.html.erb
|
395
388
|
- spec/dummy/app/views/orders/needs_extending.html.erb
|
396
|
-
- spec/dummy/app/views/orders/
|
389
|
+
- spec/dummy/app/views/orders/edit.html.erb
|
397
390
|
- spec/dummy/app/views/orders/show.html.erb
|
391
|
+
- spec/dummy/app/views/orders/_form.html.erb
|
392
|
+
- spec/dummy/app/views/orders/new.html.erb
|
393
|
+
- spec/dummy/app/views/orders/foo.html.erb
|
394
|
+
- spec/dummy/app/views/orders/_symbol_form_for.html.erb
|
395
|
+
- spec/dummy/app/assets/javascripts/application.js
|
396
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
397
|
+
- spec/dummy/app/helpers/orders_helper.rb
|
398
|
+
- spec/dummy/app/helpers/application_helper.rb
|
399
|
+
- spec/dummy/test/magic_lamp_config.rb
|
400
|
+
- spec/dummy/test/test_lamp.rb
|
401
|
+
- spec/dummy/bin/rake
|
398
402
|
- spec/dummy/bin/bundle
|
399
403
|
- spec/dummy/bin/rails
|
400
|
-
- spec/dummy/
|
401
|
-
- spec/dummy/config/
|
402
|
-
- spec/dummy/config/
|
403
|
-
- spec/dummy/config/database.yml
|
404
|
-
- spec/dummy/config/environment.rb
|
405
|
-
- spec/dummy/config/environments/development.rb
|
404
|
+
- spec/dummy/config/secrets.yml
|
405
|
+
- spec/dummy/config/routes.rb
|
406
|
+
- spec/dummy/config/locales/en.yml
|
406
407
|
- spec/dummy/config/environments/production.rb
|
408
|
+
- spec/dummy/config/environments/development.rb
|
407
409
|
- spec/dummy/config/environments/test.rb
|
408
|
-
- spec/dummy/config/
|
410
|
+
- spec/dummy/config/environment.rb
|
411
|
+
- spec/dummy/config/application.rb
|
412
|
+
- spec/dummy/config/database.yml
|
413
|
+
- spec/dummy/config/boot.rb
|
409
414
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
410
|
-
- spec/dummy/config/initializers/cookies_serializer.rb
|
411
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
412
|
-
- spec/dummy/config/initializers/inflections.rb
|
413
415
|
- spec/dummy/config/initializers/mime_types.rb
|
416
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
414
417
|
- spec/dummy/config/initializers/session_store.rb
|
415
418
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
416
|
-
- spec/dummy/config/
|
417
|
-
- spec/dummy/config/
|
418
|
-
- spec/dummy/config/
|
419
|
+
- spec/dummy/config/initializers/assets.rb
|
420
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
421
|
+
- spec/dummy/config/initializers/inflections.rb
|
419
422
|
- spec/dummy/config.ru
|
420
|
-
- spec/dummy/
|
421
|
-
- spec/dummy/
|
422
|
-
- spec/dummy/
|
423
|
+
- spec/dummy/spec/magical/magic_lamp.rb
|
424
|
+
- spec/dummy/spec/magical/magic_lamp_config.rb
|
425
|
+
- spec/dummy/spec/magical/a_lamp_file_with_a_different_name_lamp.rb
|
423
426
|
- spec/dummy/error_specs/config_file_load_error.rb
|
424
|
-
- spec/dummy/error_specs/
|
427
|
+
- spec/dummy/error_specs/broken_fixtures.rb
|
425
428
|
- spec/dummy/error_specs/second_errored_lamp_file.rb
|
429
|
+
- spec/dummy/error_specs/first_errored_lamp_file.rb
|
426
430
|
- spec/dummy/persisted_specs/magic_lamp.rb
|
427
431
|
- spec/dummy/persisted_specs/magic_lamp_config.rb
|
428
|
-
- spec/dummy/
|
432
|
+
- spec/dummy/Rakefile
|
433
|
+
- spec/dummy/public/favicon.ico
|
429
434
|
- spec/dummy/public/422.html
|
430
435
|
- spec/dummy/public/500.html
|
431
|
-
- spec/dummy/public/
|
432
|
-
- spec/dummy/
|
436
|
+
- spec/dummy/public/404.html
|
437
|
+
- spec/dummy/db/schema.rb
|
438
|
+
- spec/dummy/db/migrate/20140801133550_create_orders.rb
|
433
439
|
- spec/dummy/README.rdoc
|
434
|
-
- spec/
|
435
|
-
- spec/dummy/spec/magical/magic_lamp.rb
|
436
|
-
- spec/dummy/spec/magical/magic_lamp_config.rb
|
437
|
-
- spec/dummy/test/magic_lamp_config.rb
|
438
|
-
- spec/dummy/test/test_lamp.rb
|
439
|
-
- spec/javascripts/genie_spec.js
|
440
|
+
- spec/support/callbacks_examples.rb
|
440
441
|
- spec/javascripts/magic_lamp_spec.js
|
441
|
-
- spec/javascripts/
|
442
|
+
- spec/javascripts/genie_spec.js
|
442
443
|
- spec/javascripts/support/chai-fuzzy.js
|
443
|
-
- spec/javascripts/support/sinon-chai.js
|
444
444
|
- spec/javascripts/support/underscore-1.6.js
|
445
|
-
- spec/
|
445
|
+
- spec/javascripts/support/sinon-chai.js
|
446
|
+
- spec/javascripts/spec_helper.js
|
447
|
+
- spec/lib/render_catcher_spec.rb
|
446
448
|
- spec/lib/configuration_spec.rb
|
447
|
-
- spec/lib/
|
449
|
+
- spec/lib/all_fixtures_spec.rb
|
448
450
|
- spec/lib/fixture_creator_spec.rb
|
449
451
|
- spec/lib/magic_lamp_spec.rb
|
450
|
-
- spec/lib/
|
451
|
-
- spec/rails_helper.rb
|
452
|
-
- spec/spec_helper.rb
|
453
|
-
- spec/support/callbacks_examples.rb
|
454
|
-
- spec/tasks/fixture_names_task_spec.rb
|
455
|
-
- spec/tasks/lint_task_spec.rb
|
452
|
+
- spec/lib/defaults_manager_spec.rb
|
456
453
|
- spec/teaspoon_env.rb
|
454
|
+
- spec/controllers/magic_lamp/lint_controller_spec.rb
|
455
|
+
- spec/controllers/magic_lamp/fixtures_controller_spec.rb
|
456
|
+
- spec/rails_helper.rb
|
457
457
|
has_rdoc:
|