Hi all, i did the guide of rails 3.2 and when a finish it, i want to
implement test for this guide, so i readed about RSpec.
But i can't understand how to implement it.
I try to do this.
#app/spec/post_spec.rb
require 'spec_helper'
require 'post'
require 'debugger'
describe "Analyze that the attributes can't be nil." do
before(:all) do
@post=Post.new
end
it "trying that works" do
@post.title= 'im not nil'
@post.name= 'im not nil'
@post.content='im not nil'
@post.save.should be_true
end
end
Can any help me to understand how RSpec works.
--
You received this message because you are subscribed to the Google Groups
"rspec" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
To view this discussion on the web visit
https://groups.google.com/d/msg/rspec/-/cdWP5GdM7BAJ.
For more options, visit https://groups.google.com/groups/opt_out.