require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe "Feedback" do before :all do @feedback = AmazonSellerCentral::Feedback.new end %w{date rating comments arrived_on_time item_as_described customer_service order_id rater_email rater_role}.each do |expected_attribute| it "Has an attribute \"#{expected_attribute}\"" do @feedback.send("#{expected_attribute}=", "foo") @feedback.send(expected_attribute).should == "foo" end end end