Skip to content

Commit

Permalink
add test for creating new anno with params from html form
Browse files Browse the repository at this point in the history
  • Loading branch information
ndushay committed Nov 25, 2014
1 parent a25d3f9 commit 4e2a175
Show file tree
Hide file tree
Showing 2 changed files with 218 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/controllers/triannon/annotations_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
post :create, ttl_data
expect(response.status).to eq 302
end

it 'creates a new annotation from params from form' do
ttl_data = Triannon.annotation_fixture("body-chars.ttl")
post :create, :annotation => {:data => ttl_data}
expect(response.status).to eq 302
end

it "renders 403 if Triannon::ExternalReferenceError raised during LdpCreator.create" do
err_msg = "some error during LdpCreator.create"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4e2a175

Please sign in to comment.