Sha256: b1726e95e1fdf425595ea8b75a42156c463f563c06dedbd76332d7e9c0196400

Contents?: true

Size: 750 Bytes

Versions: 38

Compression:

Stored size: 750 Bytes

Contents

require "spec_helper"
require "generators/clearance/specs/specs_generator"

describe Clearance::Generators::SpecsGenerator, :generator do
  it "copies specs to host app" do
    run_generator

    specs = %w(
      factories/clearance
      features/clearance/user_signs_out_spec
      features/clearance/visitor_resets_password_spec
      features/clearance/visitor_signs_in_spec
      features/clearance/visitor_signs_up_spec
      features/clearance/visitor_updates_password_spec
      support/clearance
      support/features/clearance_helpers
    )

    spec_files = specs.map { |spec| file("spec/#{spec}.rb") }

    spec_files.each do |spec_file|
      expect(spec_file).to exist
      expect(spec_file).to have_correct_syntax
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
clearance-2.9.2 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-2.9.1 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-2.9.0 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-2.8.0 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-2.7.2 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-2.7.0 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-2.6.2 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-2.6.1 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-2.6.0 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-2.5.0 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-2.4.0 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-2.3.1 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-2.3.0 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-2.2.1 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-2.2.0 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-2.1.0 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-2.0.0 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-2.0.0.beta2 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-2.0.0.beta1 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-1.17.0 spec/generators/clearance/specs/specs_generator_spec.rb