Sha256: 37d6207cd0e242b38bb5a0ce7aba843b591b00206539233cbaeedb716140c888

Contents?: true

Size: 480 Bytes

Versions: 33

Compression:

Stored size: 480 Bytes

Contents

require "spec_helper"

describe ActiveMetadata::StreamHelper do

  include ActiveMetadata::StreamHelper

  describe "stream_partial_name" do

    it "should return the partial name to render notes" do
      stream_partial_path(ActiveMetadata::Note.new).should eq 'active_metadata/notes/note'
    end

  end

  describe "clean_class_name" do

    it "should remove the module from a class name" do
      clean_class_name('ActiveMetadata::Note').should eq 'Note'
    end

  end

end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
active_metadata-0.8.9 spec/helpers/active_metadata/stream_helpers_spec.rb
active_metadata-0.8.8 spec/helpers/active_metadata/stream_helpers_spec.rb
active_metadata-0.8.7.1 spec/helpers/active_metadata/stream_helpers_spec.rb
active_metadata-0.8.7 spec/helpers/active_metadata/stream_helpers_spec.rb
active_metadata-0.8.6 spec/helpers/active_metadata/stream_helpers_spec.rb
active_metadata-0.8.5.2 spec/helpers/active_metadata/stream_helpers_spec.rb
active_metadata-0.8.5.1 spec/helpers/active_metadata/stream_helpers_spec.rb
active_metadata-0.8.5 spec/helpers/active_metadata/stream_helpers_spec.rb
active_metadata-0.8.4 spec/helpers/active_metadata/stream_helpers_spec.rb
active_metadata-0.8.3.1 spec/helpers/active_metadata/stream_helpers_spec.rb
active_metadata-0.8.3 spec/helpers/active_metadata/stream_helpers_spec.rb
active_metadata-0.8.2 spec/helpers/active_metadata/stream_helpers_spec.rb
active_metadata-0.8.1 spec/helpers/active_metadata/stream_helpers_spec.rb
active_metadata-0.8.0 spec/helpers/active_metadata/stream_helpers_spec.rb
active_metadata-0.7.9 spec/helpers/active_metadata/stream_helpers_spec.rb
active_metadata-0.7.8 spec/helpers/active_metadata/stream_helpers_spec.rb
active_metadata-0.7.7 spec/helpers/active_metadata/stream_helpers_spec.rb
active_metadata-0.7.6 spec/helpers/active_metadata/stream_helpers_spec.rb
active_metadata-0.7.5 spec/helpers/active_metadata/stream_helpers_spec.rb
active_metadata-0.7.4 spec/helpers/active_metadata/stream_helpers_spec.rb