Loading...
Loading...
RSpec Ruby testing framework. Use for Ruby testing.
npx skill4agent add g1joshi/agent-skills rspec# user_spec.rb
RSpec.describe User, type: :model do
context "when newly created" do
it "has no name" do
user = User.new
expect(user.name).to be_nil
end
end
enddescribecontextdescribecontextlet(:user) { User.create }let!(:user) { User.create }expect(x).to eq(y)be_validchange { User.count }.by(1)subjectitbefore(:all)before(:each)