Skip to content

Commit

Permalink
rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Judahmeek committed Nov 28, 2016
1 parent 3f2dab9 commit c9af94a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/generators/react_on_rails/react_no_redux_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class ReactNoReduxGenerator < Rails::Generators::Base
include GeneratorHelper
Rails::Generators.hide_namespace(namespace)
source_root(File.expand_path("../templates", __FILE__))

def copy_react_files
base_path = "no_redux/base/"
%w(client/app/bundles/HelloWorld/components/HelloWorldApp.jsx
Expand Down
2 changes: 1 addition & 1 deletion spec/react_on_rails/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
# ...rather than:
# # => "be bigger than 2"
expectations.include_chain_clauses_in_custom_matcher_descriptions = true

### Fix Net::ReadTimeout error on first test
# Show retry status in spec process
config.verbose_retry = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
assert_match("HelloWorld", contents)
end
end

it "copies react files" do
%w(client/app/bundles/HelloWorld/components/HelloWorldApp.jsx
client/app/bundles/HelloWorld/startup/registration.jsx).each { |file| assert_file(file) }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
shared_examples "react_with_redux_generator" do
it "creates redux directories" do
%w(actions constants containers reducers store).each { |dir| assert_directory("client/app/bundles/HelloWorld/#{dir}") }
%w(actions
constants
containers
reducers
store).each do |dir|
assert_directory("client/app/bundles/HelloWorld/#{dir}")
end
end

it "copies base redux files" do
Expand Down

0 comments on commit c9af94a

Please sign in to comment.