Skip to content

Commit

Permalink
Fix spec files naming and add missing pragmas
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Apr 18, 2018
1 parent 71cd062 commit 526a2a9
Show file tree
Hide file tree
Showing 18 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source 'https://rubygems.org'

gem 'bundler', '~> 1.1'
Expand Down
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rubygems'
require 'rspec/core/rake_task'
require 'cucumber/rake/task'
Expand Down
2 changes: 2 additions & 0 deletions lib/capybara/minitest/spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'minitest/spec'

module Capybara
Expand Down
2 changes: 2 additions & 0 deletions lib/capybara/queries/match_query.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Capybara
module Queries
class MatchQuery < Capybara::Queries::SelectorQuery
Expand Down
2 changes: 2 additions & 0 deletions lib/capybara/rspec/compound.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Capybara
module RSpecMatchers
module Compound
Expand Down
2 changes: 2 additions & 0 deletions lib/capybara/selector/css.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Capybara
class Selector
class CSS
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

Capybara::SpecHelper.spec '#assert_matches_selector' do
before do
@session.visit('/with_html')
Expand Down
2 changes: 2 additions & 0 deletions lib/capybara/spec/session/element/match_css_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

Capybara::SpecHelper.spec '#match_css?' do
before do
@session.visit('/with_html')
Expand Down
2 changes: 2 additions & 0 deletions lib/capybara/spec/session/element/match_xpath_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

Capybara::SpecHelper.spec '#match_xpath?' do
before do
@session.visit('/with_html')
Expand Down
2 changes: 2 additions & 0 deletions lib/capybara/spec/session/element/matches_selector_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

Capybara::SpecHelper.spec '#match_selector?' do
before do
@session.visit('/with_html')
Expand Down
2 changes: 2 additions & 0 deletions lib/capybara/spec/session/has_none_selectors_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

Capybara::SpecHelper.spec '#have_none_of_selectors' do
before do
@session.visit('/with_html')
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions lib/capybara/spec/session/selectors_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

Capybara::SpecHelper.spec Capybara::Selector do
before do
@session.visit('/form')
Expand Down

0 comments on commit 526a2a9

Please sign in to comment.