Skip to content

Commit

Permalink
Add RSpec Generator Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Braden-077 committed Aug 28, 2024
1 parent 73f0c4e commit b62e118
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions spec/generators/rolemodel/rspec_generator_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
require 'spec_helper'
require 'generators/rolemodel/testing/rspec/rspec_generator'

RSpec.describe Rolemodel::Testing::RspecGenerator, type: :generator do
destination File.expand_path('tmp/', File.dirname(__FILE__))

before(:all) do
prepare_test_app
run_generator
end

after(:all) do
cleanup_test_app
end

it 'adds tailored select to package.json' do
assert_file 'spec/support/helpers/action_cable_helper.rb'
assert_file 'spec/support/helpers/select_helper.rb'
assert_file 'spec/support/helpers/test_element_helper.rb'
end
end

0 comments on commit b62e118

Please sign in to comment.