Skip to content

Commit

Permalink
Fix rspecs
Browse files Browse the repository at this point in the history
  • Loading branch information
pulkitkkr committed Jul 18, 2022
1 parent 1a1b467 commit d7f4acf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/react_on_rails/packs_generator.rb
Expand Up @@ -136,7 +136,7 @@ def self.component_name_to_path(paths)
end

def self.common_component_to_path
common_components_paths = Dir.glob("#{components_search_path}/*[!]*")
common_components_paths = Dir.glob("#{components_search_path}/*[!(.server.|.client.)]*")
component_name_to_path(common_components_paths)
end

Expand Down
3 changes: 3 additions & 0 deletions spec/react_on_rails/packs_generator_spec.rb
Expand Up @@ -21,6 +21,9 @@ module ReactOnRails
end

after do
ReactOnRails.configuration.server_bundle_js_file = nil
ReactOnRails.configuration.components_directory = nil

FileUtils.rm_rf("#{webpacker_source_entry_path}/generated")
FileUtils.rm(generated_server_bundle_file_path)
File.truncate("#{webpacker_source_entry_path}/#{server_bundle_js_file}", 0)
Expand Down

0 comments on commit d7f4acf

Please sign in to comment.