Skip to content

Commit

Permalink
Merge pull request #104 from departurerb/clear-warning
Browse files Browse the repository at this point in the history
Avoid double definition of shared examples
  • Loading branch information
xjunior authored Feb 8, 2024
2 parents 4e27275 + 0695141 commit b8a0d6a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion spec/lhm/adapter/add_column_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'spec_helper'
require 'lhm/adapter/shared_example_column_definition_method_spec'

describe Lhm::Adapter, '#add_column' do
it_behaves_like 'column-definition method', :add_column
Expand Down
1 change: 0 additions & 1 deletion spec/lhm/adapter/change_column_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'spec_helper'
require 'lhm/adapter/shared_example_column_definition_method_spec'

describe Lhm::Adapter, '#change_column' do
it_behaves_like 'column-definition method', :change_column
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
require 'support/matchers/have_column'
require 'support/matchers/have_index'
require 'support/matchers/have_foreign_key_on'
require 'support/shared_examples/column_definition_method'
require 'support/table_methods'

db_config = Configuration.new
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# TODO: What about ENUM?
shared_examples 'column-definition method' do |method_name|
let(:migration) { double(:migration) }
let(:table_name) { :comments }
Expand Down

0 comments on commit b8a0d6a

Please sign in to comment.