Sha256: a83cae5054e8e127f87eb52957d19f68a445f85776b29c30c251236f487bb1f2
Contents?: true
Size: 498 Bytes
Versions: 5
Compression:
Stored size: 498 Bytes
Contents
require "test_helper" module PushType describe Node do let(:node) { Node.new } it { node.wont_be :valid? } it 'should be valid with required attributes' do node.attributes = FactoryGirl.attributes_for :node node.must_be :valid? end describe '#permalink' do before do %w(one two three).each { |slug| @node = FactoryGirl.create :node, slug: slug, parent: @node } end it { @node.permalink.must_equal 'one/two/three' } end end end
Version data entries
5 entries across 5 versions & 1 rubygems