Class: RSpec::RailsApp::Artifact::Matchers::GenerateArtifacts

Inherits:
HaveArtifacts
  • Object
show all
Defined in:
lib/generator-spec/rspec/matchers/generate_artifacts.rb

Instance Method Summary collapse

Constructor Details

#initialize(artifact_type, *names) ⇒ GenerateArtifacts

Returns a new instance of GenerateArtifacts.



4
5
6
# File 'lib/generator-spec/rspec/matchers/generate_artifacts.rb', line 4

def initialize(artifact_type, *names)
  super
end

Instance Method Details

#matches?(generator, &block) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
11
# File 'lib/generator-spec/rspec/matchers/generate_artifacts.rb', line 8

def matches?(generator, &block)            
  root = Rails.root # File.join(Rails.application.config.root_dir, 'rails_app'), &block
  super root
end