summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/spec_helper.rb3
-rw-r--r--spec/unit/customer_spec.rb10
2 files changed, 13 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index dbc4f1a..8c72aae 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -4,6 +4,9 @@
# loaded once.
#
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
+require 'customer'
+require 'movie'
+require 'rental'
RSpec.configure do |config|
config.treat_symbols_as_metadata_keys_with_true_values = true
config.run_all_when_everything_filtered = true
diff --git a/spec/unit/customer_spec.rb b/spec/unit/customer_spec.rb
new file mode 100644
index 0000000..703693e
--- /dev/null
+++ b/spec/unit/customer_spec.rb
@@ -0,0 +1,10 @@
+require "spec_helper"
+
+describe Customer do
+ describe "#statement" do
+ it "produces a statement" do
+ customer = Customer.new('george')
+ customer.statement.should_not be_nil
+ end
+ end
+end