Sha256: 1476bb07a91c3cfd317c5544d6317b79d22451093b0ce0f1c72701c332f1c1c1
Contents?: true
Size: 1.5 KB
Versions: 10
Compression:
Stored size: 1.5 KB
Contents
# frozen_string_literal: true require_relative '../lib/generators/rspec_generator' require_relative 'spec_helper' describe RubyRaider::RspecGenerator do context 'with selenium' do before(:all) do @name = 'rspec-selenium' RubyRaider::RspecGenerator.new(['selenium', 'rspec', @name]).invoke_all end it 'creates a spec file' do expect(File.exist?("#{@name}/spec/login_page_spec.rb")).to be_truthy end it 'creates the base spec file' do expect(File.exist?("#{@name}/spec/base_spec.rb")).to be_truthy end after(:all) do FileUtils.rm_rf(@name) end end context 'with watir' do before(:all) do @name = 'rspec-watir' RubyRaider::RspecGenerator.new(['watir', 'rspec', @name]).invoke_all end it 'creates a spec file' do expect(File.exist?("#{@name}/spec/login_page_spec.rb")).to be_truthy end it 'creates the base spec file' do expect(File.exist?("#{@name}/spec/base_spec.rb")).to be_truthy end after(:all) do FileUtils.rm_rf(@name) end end context 'with appium' do before(:all) do @name = 'rspec-appium' RubyRaider::RspecGenerator.new(['appium_ios', 'rspec', @name]).invoke_all end it 'creates a spec file' do expect(File.exist?("#{@name}/spec/login_page_spec.rb")).to be_truthy end it 'creates the base spec file' do expect(File.exist?("#{@name}/spec/base_spec.rb")).to be_truthy end after(:all) do FileUtils.rm_rf(@name) end end end
Version data entries
10 entries across 10 versions & 1 rubygems