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-1.16.2 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-1.16.1 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-1.16.0 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-1.15.1 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-1.15.0 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-1.14.2 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-1.14.1 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-1.14.0 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-1.13.0 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-1.12.1 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-1.12.0 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-1.11.0 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-1.10.1 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-1.9.0 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-1.8.1 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-1.8.0 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-1.7.0 spec/generators/clearance/specs/specs_generator_spec.rb
clearance-1.6.1 spec/generators/clearance/specs/specs_generator_spec.rb