Sha256: 91005a61003f3c11751eea4805e8f7aa8a91bc42d9226dab361f2091d0dfdd82

Contents?: true

Size: 647 Bytes

Versions: 13

Compression:

Stored size: 647 Bytes

Contents

require 'test_helper'

module Guts
  class TrackerTest < ActiveSupport::TestCase
    test 'should return a track object' do
      track = guts_trackers :one

      assert_instance_of Guts::Content, track.object
    end
    
    test 'should return a track params in JSON Hash' do
      track = guts_trackers :one

      assert_instance_of Hash, track.params
    end

    test 'should have a before and after value for param' do
      track = guts_trackers :one

      assert_equal 2, track.params['title'].size
    end
    
    test 'tracker should be multisite compatible' do
      assert Tracker.all.to_sql.include?('site_id')
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
guts-1.4.0 test/models/guts/tracker_test.rb
guts-1.3.6 test/models/guts/tracker_test.rb
guts-1.3.5 test/models/guts/tracker_test.rb
guts-1.3.4 test/models/guts/tracker_test.rb
guts-1.3.3 test/models/guts/tracker_test.rb
guts-1.3.2 test/models/guts/tracker_test.rb
guts-1.3.1 test/models/guts/tracker_test.rb
guts-1.3.0 test/models/guts/tracker_test.rb
guts-1.2.2 test/models/guts/tracker_test.rb
guts-1.2.1 test/models/guts/tracker_test.rb
guts-1.2.0 test/models/guts/tracker_test.rb
guts-1.1.1 test/models/guts/tracker_test.rb
guts-1.1.0 test/models/guts/tracker_test.rb