require File.expand_path('../../spec_helper', __FILE__) describe "Magic comment" do it "is optional" do eval("__ENCODING__").should be_an_instance_of(Encoding) end it "determines __ENCODING__" do eval(<