Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Stub out lib

  • Loading branch information...
commit a88c0c644dd399f9cf777557f9d8cf1c7002a467 1 parent d62597b
Eloy Durán authored
1  .gitignore
... ...
@@ -0,0 +1 @@
  1
+*.swp
5  lib/mollie/sms.rb
... ...
@@ -0,0 +1,5 @@
  1
+module Mollie
  2
+  class SMS
  3
+    attr_accessor :telephone_number, :body
  4
+  end
  5
+end
18  spec/sms_spec.rb
... ...
@@ -0,0 +1,18 @@
  1
+require File.expand_path("../spec_helper", __FILE__)
  2
+require "mollie/sms"
  3
+
  4
+describe "Mollie::SMS" do
  5
+  before do
  6
+    @sms = Mollie::SMS.new
  7
+    @sms.telephone_number = '+31612345678'
  8
+    @sms.body = "The stars tell me you will have chicken noodle soup for breakfast."
  9
+  end
  10
+
  11
+  it "returns the phone number" do
  12
+    @sms.telephone_number.should == '+31612345678'
  13
+  end
  14
+
  15
+  it "returns the message body" do
  16
+    @sms.body.should == "The stars tell me you will have chicken noodle soup for breakfast."
  17
+  end
  18
+end
6  spec/spec_helper.rb
... ...
@@ -0,0 +1,6 @@
  1
+require "rubygems"
  2
+require "bacon"
  3
+
  4
+$:.unshift File.expand_path("../../lib", __FILE__)
  5
+
  6
+Bacon.summary_on_exit

0 notes on commit a88c0c6

Please sign in to comment.
Something went wrong with that request. Please try again.