Skip to content

Commit

Permalink
Use Test module in relation spec
Browse files Browse the repository at this point in the history
Updates the `relation_spec` to use the new `Test` module to isolate the
`RelationPlugin` module created for the examples.
  • Loading branch information
elskwid committed Feb 26, 2017
1 parent 2643d65 commit abb1651
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions spec/integration/relation_spec.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
require 'spec_helper'

describe 'CSV gateway' do
describe 'CSV relation' do
context 'without extra options' do
include_context 'database setup'

before do
module TestPlugin; end
module Test
module RelationPlugin
# empty plugin for test purposes
end
end

ROM.plugins do
adapter :csv do
register :test_plugin, TestPlugin, type: :relation
register :test_plugin, Test::RelationPlugin, type: :relation
end
end
end
Expand Down

0 comments on commit abb1651

Please sign in to comment.