Sha256: 1ad76d1148625d433476e38b8b21e858e1847b04e7e0b9a073a8a2c2f70de2bd

Contents?: true

Size: 465 Bytes

Versions: 3

Compression:

Stored size: 465 Bytes

Contents

require 'test_helper'

module PushType
  class NodeUrlHelperTest < ActionView::TestCase

    let(:node) { FactoryBot.create :node, slug: 'test1' }

    describe '#node_path' do
      it { node_path(node).must_equal '/test1' }
      it { node_path('test2').must_equal '/test2' }
    end

    describe '#node_url' do
      it { node_url(node).must_equal 'http://test.host/test1' }
      it { node_url('test2').must_equal 'http://test.host/test2' }
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
push_type_core-0.12.1 test/helpers/push_type/node_url_helper_test.rb
push_type_core-0.12.0 test/helpers/push_type/node_url_helper_test.rb
push_type_core-0.12.0.beta.1 test/helpers/push_type/node_url_helper_test.rb