require 'spec_helper' describe "#RoCommands::Check" do let(:o) do ::RoCommands::Check.new end before do 10.times do Post.create(title: RoFaker.sentence, content: RoFaker.paras) end end it "#table" do post = o.send(:"table", 'post').first expect(post.title).to have_value expect(post.content).to have_value end end