Skip to content

Instantly share code, notes, and snippets.

@joshgit

joshgit/foo.rb Secret

Created February 10, 2016 02:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshgit/656975fc148207a88a06 to your computer and use it in GitHub Desktop.
Save joshgit/656975fc148207a88a06 to your computer and use it in GitHub Desktop.
1 require 'test_helper'
2
3 class ProductTest < ActiveSupport::TestCase
4 test "the truth" do
5
6 a = Advertiser.new
7 a.name = 'advertiser one'
8 assert a.save
9
10 p = Product.new
11 p.name = 'product one'
12 p.belongs_to = a.id
13 assert p.save
14 end
15
16 end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment