Skip to content

Commit

Permalink
Merge pull request #465 from dchandekstark/n-triples-mime-type
Browse files Browse the repository at this point in the history
Set default mimeType for NtriplesRDFDatastream to 'application/n-triples'
  • Loading branch information
jcoyne committed Aug 27, 2014
2 parents 89d4a29 + bbcd201 commit 2d21c13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/active_fedora/rdf/ntriples_rdf_datastream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module ActiveFedora
class NtriplesRDFDatastream < RDFDatastream
def self.default_attributes
super.merge(:controlGroup => 'M', :mimeType => 'text/plain')
super.merge(:controlGroup => 'M', :mimeType => 'application/n-triples')
end

def serialization_format
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/ntriples_datastream_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class MyDatastream < ActiveFedora::NtriplesRDFDatastream
@subject.controlGroup.should == 'M'
end
it "should have mimeType" do
@subject.mimeType.should == 'text/plain'
@subject.mimeType.should == 'application/n-triples'
end
it "should have dsid" do
@subject.dsid.should == 'descMetadata'
Expand Down

0 comments on commit 2d21c13

Please sign in to comment.