Sha256: 52882092d5a0a432b7dda1a4e63a1b27e084596bb8d0500ad4ab3e20adac78c5
Contents?: true
Size: 689 Bytes
Versions: 2
Compression:
Stored size: 689 Bytes
Contents
require "spec_helper" module Pemilu describe Party do describe "new" do let(:party) { Pemilu::Party.new( id: 1, nick_name: "ASOLOLE", full_name: "ASOLOLE JOS!", url: "test", facebook: "test", twitter: "test" ) } it "should return Pemilu::Party object and have correct details" do party.should be_a(Pemilu::Party) expect(party.id).to eq(1) expect(party.nick_name).to eq("ASOLOLE") expect(party.full_name).to eq("ASOLOLE JOS!") expect(party.url).to eq("test") expect(party.facebook).to eq("test") expect(party.twitter).to eq("test") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pemilu-1.0.1 | spec/pemilu/party_spec.rb |
pemilu-1.0.0 | spec/pemilu/party_spec.rb |