require "spec_helper" describe Surrender, "BACKUP_RE" do subject { Surrender::BACKUP_RE } it { subject.match("/var/backup/database/base-20130809.sql.gz").inspect.should == "#" } it { subject.match("/var/backup/database/base-20130810.sql.gz").inspect.should == "#" } end