Sha256: 66c6adf9c72342f60d368f40c962e6a1559e57ec1eb9cda96390074d6a769067
Contents?: true
Size: 631 Bytes
Versions: 3
Compression:
Stored size: 631 Bytes
Contents
require 'test_helper' describe 'Internal Null' do let(:admin) { Order.act_with_flags } def setup reset_order Order.add_to_flags end it 'respond to act_with_flags' do assert Order.respond_to?(:act_with_flags) refute_nil Order.act_with_flags end it 'tests to_boolean' do assert admin.to_boolean(true) refute admin.to_boolean(false) assert_raises { flags.to_boolean(nil) } assert_raises { flags.to_boolean(2) } assert_raises { flags.to_boolean('unknown') } end it 'tests a simple administration: names' do refute_nil admin.names assert_equal [], admin.names end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
act_with_flags-0.0.7 | test/internal_null_test.rb |
act_with_flags-0.0.6 | test/internal_null_test.rb |
act_with_flags-0.0.4 | test/internal_null_test.rb |