Sha256: cc8806480c1c9f637235d762386a4082f38a89d2b0100f1c385c1ee9e10901ce

Contents?: true

Size: 504 Bytes

Versions: 3

Compression:

Stored size: 504 Bytes

Contents

require 'test_helper'

module Workarea
  module Email
    class ShareTest < TestCase
      def url
        @url ||= 'http://www.reddit.com/r/ruby?q=a'
      end

      def path
        @path ||= '/r/ruby?q=a'
      end

      def test_initialize
        share = Email::Share.new(url: url)
        assert_equal(path, share.url)
      end

      def test_valid
        share = Email::Share.new
        share.url = url
        share.valid?

        assert_equal(path, share.url)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
workarea-share-1.3.1 test/models/workarea/email/share_test.rb
workarea-share-1.3.0 test/models/workarea/email/share_test.rb
workarea-share-1.2.4 test/models/workarea/email/share_test.rb