mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
9 lines
385 B
Ruby
9 lines
385 B
Ruby
require File.expand_path('../spec_helper.rb', __FILE__)
|
|
|
|
describe Rack::Protection::FormToken do
|
|
it_behaves_like "any rack application"
|
|
it "denies post form requests without any token"
|
|
it "accepts post form requests with correct authenticity_token field"
|
|
it "denies post form requests with wrong authenticity_token field"
|
|
it "accepts ajax requests without a valid token"
|
|
end
|