-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Character has a name, and can get/set it
rake runs the test, and it passes. Added .swp files to gitignore. Rake spits out a bunch of ugly garbage - wonder if I can fix that.
- Loading branch information
Eric Coleman
committed
May 3, 2016
1 parent
436a3ef
commit e338088
Showing
6 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ require 'rspec/core/rake_task' | |
RSpec::Core::RakeTask.new :spec | ||
|
||
task :default => :spec | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class Character | ||
attr_accessor :name | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
require 'character' | ||
|
||
describe Character do | ||
|
||
it "can set its name" do | ||
expected_name = "Nathan Explosion" | ||
subject.name = expected_name | ||
expect(subject.name).to eq(expected_name) | ||
end | ||
|
||
end | ||
|
||
|