Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions spec/requests/configuration_spec.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
require 'spec_helper'

describe 'Configuration Spec' do
describe 'config.whitelist' do

before { Post.create(title: "Test") }
describe 'config' do
before { Post.create(title: "Test") }

describe 'whitelist' do
after do
ApiEngine.configure do |config|
config.whitelist = false
end
end

context 'Post is not on the whitelist' do

before do
ApiEngine.configure do |config|
config.whitelist = [:comment]
Expand All @@ -26,7 +24,6 @@
end

context 'Post is on the whitelist' do

before do
ApiEngine.configure do |config|
config.whitelist = [:post]
Expand All @@ -39,4 +36,12 @@
end
end
end

describe 'current_user_method' do

end

describe 'authentication_method' do

end
end