Sha256: b7e713baf3c3029f716451483b53939044b7b068fd816733e66b0c4a5e213d03

Contents?: true

Size: 505 Bytes

Versions: 2

Compression:

Stored size: 505 Bytes

Contents

RSpec.describe TailwinduiRails::Generators::InstallGenerator, type: :generator  do

  it "has a version number" do
    expect(TailwinduiRails::VERSION).not_to be nil
  end

  describe 'generated files' do
    before do
      run_generator
      let(:file) { 'tailwind.config.js' }
      let(:application_layout) { 'app/views/layouts/application.html.erb' }
    end

    it { expect(file).to be_an_existing_file }
    it { expect(application_layout).to have_file_content('stylesheet_pack_tag') }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tailwindui_rails-0.2.0 spec/tailwindui_rails_spec.rb
tailwindui_rails-0.1.0 spec/tailwindui_rails_spec.rb