Permalink
Browse files

Stub out lib

  • Loading branch information...
alloy committed Jul 30, 2010
1 parent d62597b commit a88c0c644dd399f9cf777557f9d8cf1c7002a467
Showing with 30 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +5 −0 lib/mollie/sms.rb
  3. +18 −0 spec/sms_spec.rb
  4. +6 −0 spec/spec_helper.rb
View
@@ -0,0 +1 @@
+*.swp
View
@@ -0,0 +1,5 @@
+module Mollie
+ class SMS
+ attr_accessor :telephone_number, :body
+ end
+end
View
@@ -0,0 +1,18 @@
+require File.expand_path("../spec_helper", __FILE__)
+require "mollie/sms"
+
+describe "Mollie::SMS" do
+ before do
+ @sms = Mollie::SMS.new
+ @sms.telephone_number = '+31612345678'
+ @sms.body = "The stars tell me you will have chicken noodle soup for breakfast."
+ end
+
+ it "returns the phone number" do
+ @sms.telephone_number.should == '+31612345678'
+ end
+
+ it "returns the message body" do
+ @sms.body.should == "The stars tell me you will have chicken noodle soup for breakfast."
+ end
+end
View
@@ -0,0 +1,6 @@
+require "rubygems"
+require "bacon"
+
+$:.unshift File.expand_path("../../lib", __FILE__)
+
+Bacon.summary_on_exit

0 comments on commit a88c0c6

Please sign in to comment.