Sha256: 48d63f0458a4cf3700c12fb2ed827f3182b6fe4eb4d9d5a8d245d174ad20f88b
Contents?: true
Size: 658 Bytes
Versions: 1
Compression:
Stored size: 658 Bytes
Contents
require "spec_helper" RSpec.describe "Generating a new project with authentication" do before(:example) do remove_dummy_app run_arkenstone("--skip-bundle --authentication") end it "creates a User model" do user_model = File.join(models_path, "user.rb") expect(File.exist?(user_model)).to be true end it "adds Clearance::Controller to ApplicationController" do application_controller = File.join(controllers_path, "application_controller.rb") pattern = /include Clearance::Controller/ match = nil File.open(application_controller) { |f| match = pattern.match(f.read) } expect(match).to_not be nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
arkenstone-0.1.0 | spec/features/new_project_with_authentication_spec.rb |